使用< iframe& gt;自动播放You Tube视频-?autoplay = 1无法正常工作 [英] Autoplay with &lt;iframe&gt; You Tube video - ?autoplay=1 not working
本文介绍了使用< iframe& gt;自动播放You Tube视频-?autoplay = 1无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码遵循了这些说明,因此无法正常工作.我还查看了YouTube帮助,他们说了同样的话-对我不起作用.
My code followed these instructions and does not work. I also looked on the YouTube help and they say the same thing -- does not work for me.
<html><body>
<iframe width="640" height="385" src="//www.youtube.com/embed/0319ZgKMLzw?autoplay" frameborder="0" allowfullscreen></iframe></body>
</html>
看到它没有自动播放在这里,代码就在萤火虫中.
See it not autoplaying here, the code is there in firebug.
推荐答案
将嵌入代码编辑为?autoplay = 1"并添加"http://".这是适合您的工作代码...
Edit your embed code to "?autoplay=1" and add "http://". Here is the working code for you...
<iframe width="640" height="385" src="http://www.youtube.com/embed/0319ZgKMLzw?autoplay=1"> </iframe>
这篇关于使用< iframe& gt;自动播放You Tube视频-?autoplay = 1无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文