The playback mechanism that m.youtube.com uses is not available for
third-party embedders, at least not at the present time.
The <obejct>/<embed> mechanism of embedding videos, e.g.
<object width="640" height="390"><param name="movie" value="http://
www.youtube.com/v/L5ebSn9HgJ4?fs=1&hl=en_US"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed src="http://
www.youtube.com/v/L5ebSn9HgJ4?fs=1&hl=en_US" type="application/x-
shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
width="640" height="390"></embed></object>
can be used and should trigger full-screen playback via the native
YouTube application for Android devices that don't have the Flash
plugin enabled.
Cheers,
-Jeff Posnick, YouTube API Team
~ YouTube is hiring! ~ http://google.com/jobs/workyoutube ~
On Mar 25, 4:53 pm, Martin Tilsted <mtils...@gmail.com> wrote:
> Is there a way to embed youtube videos on our own mobile website, so it
> looks something like m.youtube.com?
>
> That is: I need to show a list of videos we have chosen, and for each video
> show a thumb nail. This is not a problem to make.
>
> But if the user click on a video thumbnail I need to play the video
> full-screen and this is my problem. How do I do that?
>
> m.youtube.com does it(Well it have an intermediate page which then activate
> fullscreen play when clicking on the large thumbnail) but m.youtube.com
> don't use the youtube embed code.
>
> It does as far as I can see generate different html/javascript to play the
> video depending on the mobile phone. So is there a way for me to
> get youtube to do the same thing for videos embedded on my site?
>
> And if not: What is the "supported/normal" way to embed and play videos on
> mobile phones, when we *really* don't want to play the video inline(In the
> browser along the rest of the page content).
>
> The iframe embed solution play videos inline on android devices, and there
> seems to be no way to prevent that -(
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment