我尝试使用YouTube播放器演示生成视频自动播放和循环所需的代码.但只有自动播放工作,它不循环,并且演示视频也不起作用.这是我用过的代码.
<iframe class="embed-responsive-item" id="ytplayer" type="text/html" width="640" height="360" src="https://www.youtube.com/embed/M7lc1UVf-VE?&autoplay=1&loop=1&rel=0&showinfo=0&color=white&iv_load_policy=3" frameborder="0" allowfullscreen>
</iframe>
Run Code Online (Sandbox Code Playgroud)