是否在YouTube iframe嵌入在移动设备上code的工作? (iPhone和Android) [英] Does the youTube iFrame embed code work on mobile devices? (iPhone, Android)
问题描述
我在使用从Youtube HTML5的iframe嵌入code样本页面。当我iPhone浏览我得到一个播放按钮,但没有视频从来不玩,如果我美元,它p $ PSS。当我使用嵌入HTML5视频标签的一切视频播放就好了。
有谁知道只要YouTube正式支持与嵌入code移动设备?是否我需要有额外的参数?我尝试以下code:
< IFRAME WIDTH =420HEIGHT =345SRC =http://www.youtube.com/embed/OZOX5sad2FEFRAMEBORDER =0的allowFullScreen>&LT ; / IFRAME>
移动Safari浏览器在iPhone上不支持的iFrame的。这里有一个例子:的http:// apiblog。 youtube.com/2010/07/new-way-to-embed-youtube-videos.html
您是否尝试过包括类和类型?类=YouTube的播放器TYPE =text / html的
I made a sample page using the HTML5 iFrame embed code from youTube. When browsing on my iPhone I get a play button but yet the video never plays if I press on it. When I embed the video with the HTML5 video tag everything plays just fine.
Does anyone know if youTube officially supports mobile devices with the embed code? Are there extra parameters I need? I tried the following code:
<iframe width="420" height="345" src="http://www.youtube.com/embed/OZOX5sad2FE" frameborder="0" allowfullscreen></iframe>
Mobile Safari on the iPhone does support the iFrame. There's an example here: http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html
Have you tried including the class and type? class="youtube-player" type="text/html"
这篇关于是否在YouTube iframe嵌入在移动设备上code的工作? (iPhone和Android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!