本文介绍了Youtube嵌入式视频:自动播放功能无法在iphone中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在HTML5网页中嵌入了YouTube视频链接,我希望。
以下代码适用于浏览器,但在iphone中;它不工作,需要额外的点击。
< iframe type =text / htmlwidth =125height = 100src =http://www.youtube.com/embed/d_g0251EfB8?autoplay=1frameborder =0>< / iframe>
要做什么
解决方案
它无法完成。由于各种原因(包括但不限于数据使用),Apple不允许自动播放视频。
请参阅。
I have a youtube embeded video link in HTML5 page, which I want to autoplay.
The following code works in browsers, but in iphone; its not working and needs an extra click.
<iframe type="text/html" width="125" height="100" src="http://www.youtube.com/embed/d_g0251EfB8?autoplay=1" frameborder="0"></iframe>
what to do
解决方案
It can't be done. For various reasons (including, but not limited to data usage), Apple doesn't allow auto-playing of videos.
See the accepted answer to this question.
这篇关于Youtube嵌入式视频:自动播放功能无法在iphone中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!