2017-06-02 251 views
0

我有一个iframe用于将频道的视频嵌入到html页面。该网页用于数字标牌,因此无人可以导航。我的问题是,尽管我使用了& autoplay = 1,但该频道的视频并未自动启动。 这里是代码:Youtube嵌入视频自动播放

<iframe width="480" height="480" src="http://www.youtube.com/embed?listType=user_uploads&list=NBA&loop=1&autoplay=1&rel=0&showinfo=0&controls=0&autohide=1" frameborder="0" allowfullscreen></iframe> 

谢谢。

回答

0

试试这个它会工作,

的错误,我在这里注意到,embed/video_id未发现

<iframe width="480" height="480" src="http://www.youtube.com/embed/eF5fRl3BMTY?listType=user_uploads&list=NBA&loop=1&autoplay=1&rel=0&showinfo=0&controls=0&autohide=1" frameborder="0" allowfullscreen></iframe> 
+1

太棒了!有用。非常感谢你。 –

0

看来你的视频中包含来自NBA的内容,而且它是从播放或某些网站的限制/应用。

我试过用相同的代码尝试了另一个YouTube视频,它工作。也许尝试另一个视频?

<iframe width="560" height="315" src="https://www.youtube.com/embed/1sDH1UBXI44?autoplay=1&listType=user_uploads&list=NBA&loop=1&rel=0&showinfo=0&controls=0&autohide=1" frameborder="0" allowfullscreen></iframe>

0

<iframe width="560" height="315" src="https://www.youtube.com/embed/1sDH1UBXI44?autoplay=1&listType=user_uploads&list=NBA&loop=1&rel=0&showinfo=0&controls=0&autohide=1" frameborder="0" allowfullscreen></iframe>

+0