我有一个iframe,可用于将 channel 视频嵌入到html页面。该网页用于数字标牌,因此没有人可以浏览。我的问题是,尽管我使用了&autoplay = 1,但该 channel 的视频无法自动开始。
这是代码:
<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>
谢谢。
最佳答案
试试这个会起作用,
我在这里注意到的错误,找不到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>
关于video - Youtube嵌入视频自动播放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44329151/