嗨,我必须在我的网站上使用YouTube视频,该视频应该循环播放,但是loop = 1不能正常工作,希望我能以正确的方式做到这一点,任何人都可以帮助我(提前感谢)
<html>
<iframe width="560" height="315" src="https://www.youtube.com/embed/1wUgMEaUUrM?rel=0&controls=0&showinfo=0&autoplay=1&start=40&loop=1"
frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</html>
最佳答案
请指定您需要循环播放,自动播放或不显示相关视频的次数。您可以自定义YouTube视频visit here for more info
如果您需要更多帮助,请发表评论!
谢谢!
这是你的解决方案
<iframe class="embed-responsive-item"id="ytplayer" type="text/html" width="640" height="360" src="https://www.youtube.com/embed/1wUgMEaUUrM?&autoplay=1&mute=1&loop=1&rel=0&showinfo=0&color=white&iv_load_policy=3&playlist=1wUgMEaUUrM"
frameborder="0" allowfullscreen></iframe>
这是fiddle
关于html - loop = 1无法正常使用youtube-iframe-api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51513208/