使用< iframe>进行自动播放你管视频 - ?autoplay = 1无效 [英] Autoplay with <iframe> You Tube video - ?autoplay=1 not working

查看:3056
本文介绍了使用< iframe>进行自动播放你管视频 - ?autoplay = 1无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何我可以使用Youtube的新嵌入代码样式自动播放视频吗?

我的代码遵循这些说明并且不起作用。我也查看了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>

看到它没有自动播放这里,代码在firebug中。

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>    

这篇关于使用&lt; iframe&gt;进行自动播放你管视频 - ?autoplay = 1无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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