YouTube是否打破了iPhone上的IFrame嵌入? [英] Has YouTube broken IFrame embedding on iPhone?

查看:104
本文介绍了YouTube是否打破了iPhone上的IFrame嵌入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直在使用YouTube的iframe嵌入视频。一切皆好;在iPhone上执行。在iPhone上,视频占位符图片被拉伸了大约两倍。播放视频结果的消息'您需要更新您的Adobe Flash Player ...' - 这肯定是不正确的?



这工作正常



我目前正在使用4.3.1测试iPhone 4,但也在iPad 4.2.1上测试过。



我测试的示例剪辑位于以下位置: http://wexion.net/ posts / youtube_iframe_test



该页面的HTML只是以下内容,但如果我将它放在正确页面上,则会发生同样的问题。 / p>

 < iframe class =youtube-playertype =text / htmlwidth =300height =246 src =http://www.youtube.com/embed/mG0xiG_0I2Eframeborder =0allowfullscreen>< / iframe> 

其他人是否有这个问题?知道发生了什么?或/并有可能的解决方法?

解决方案

Google / YouTube知道这似乎是一个问题。
http://groups.google.com/ group / youtube-api-gdata / browse_thread / thread / 861d5605093fdd7b#

http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/7490cb2d0aa69120



$ p $ b $(由Jeff Posnick发布,YouTube API团队,2011年4月5日星期二09:15:37 -0700(PDT))

<只是为了更新人员,Players工程团队正在努力解决影响iOS iframe播放的两个单独问题:



一个问题导致您需要升级您的Flash Player ...
错误消息。此消息似乎在
尝试使用iOS WebKit中嵌入的
iframe播放获利视频(即带有广告的视频)时触发。这个错误消息显然是
不合适的,因为iOS上没有Flash Player,但最后
,即使错误消息是
更改,视频仍然可能不会真正播放,因为并非所有货币化视频目前可在
iOS设备上播放。


播放开始后,还有另一个与iframe播放器在
页面上调整大小有关的问题。这也正在努力。
我还没有任何有关这些
中的一个或两个问题是否能在本周推出新玩家
代码的情况下得到及时解决,这些代码将在周三晚上PDT发布。我会在更新这个
线程时获得更多信息。


We've been using YouTube's iframe embedding for videos. All is fine; execpt on iPhone. On the iPhone the video placeholder image gets stretched about twice as high as it should be. Playing the video results in the message 'You need to update your Adobe Flash Player...' - which surely can't be right?

This was working fine about a week ago.

I'm currently testing on an iPhone 4 with 4.3.1 - but have also tested on an iPad 4.2.1.

My example clip I'm testing with is here: http://wexion.net/posts/youtube_iframe_test

The HTML for that page is just the following, but it's the same issue happens if I put it on a 'proper' page.

<iframe class="youtube-player" type="text/html" width="300" height="246"  src="http://www.youtube.com/embed/mG0xiG_0I2E" frameborder="0" allowfullscreen></iframe>

Does anyone else have this issue? Know what's going on? Or/and have a possible fix?

解决方案

It seems to be a problem that Google/YouTube is aware of. http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/861d5605093fdd7b# and http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/7490cb2d0aa69120

Pertinent clip: (posted by Jeff Posnick, YouTube API Team, Tue, 5 Apr 2011 09:15:37 -0700 (PDT))

Just to update folks, the Players engineering team is working to resolve two separate issues affecting iOS iframe playback:

One issue results in the "You need to upgrade your Flash Player..." error message. This message appears to be triggered when there's an attempt to play monetized videos (i.e. videos with ads) using the iframe embed on iOS WebKit. This error message is obviously inappropriate, since there's no Flash Player on iOS, but in the end the video still might not actually play even when the error message is changed, because not all monetized videos are currently playable on iOS devices.

There's another issue related to the iframe player resizing on the page after playback starts. That's also being worked on. I do not yet have any information about whether one or both of those issues will be resolved in time for this week's push of new player code, which will take place Wednesday evening PDT. I'll update this thread with more information when I have it.

这篇关于YouTube是否打破了iPhone上的IFrame嵌入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆