Why does only youtube embeds work on iPad?
Posted
by Nagaraj Hubli
on Stack Overflow
See other posts from Stack Overflow
or by Nagaraj Hubli
Published on 2010-04-05T14:14:38Z
Indexed on
2010/04/05
14:23 UTC
Read the original article
Hit count: 346
I am trying to find out as to why youtube embeds works just fine on iPad, and not the embeds of any other video site.
Example of youtube embed:
<object width="640" height="385">
<param name="movie" value="http://www.youtube.com/v/DlIU5TgwEFg&color1=0xb1b1b1&color2=0xcfcfcf&hl=en_US&feature=player_embedded&fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="http://www.youtube.com/v/DlIU5TgwEFg&color1=0xb1b1b1&color2=0xcfcfcf&hl=en_US&feature=player_embedded&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="385"></embed>
</object>
is this because iPad has got a native youtube app which has special support for youtube embeds, or is this something that is handled by the script that's get executed by the youtube embed code, which might check for the user agent, and then load the HTML5 video player with a source pointing to the h.264 encoded version of the video (is something of this sort possible)?
© Stack Overflow or respective owner