这是我的代码,但视频没有连续循环播放。
<iframe src="files/media/video/moped.webm?&autoplay=1&loop=1&title=0&byline=0&portrait=0" width="400" height="height: 722.375px;" frameborder="0" ></iframe>
我尝试将自动播放
设置为0
和1
,但这并没有改变任何东西。
最佳答案
您可以使用 <video>
元素代替:
<video width="100%" height="100%" autoplay loop>
<source src="files/media/video/moped.webm" type="video/webm" />
Your browser does not support the video tag.
</video>
关于HTML 视频自动播放不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50084918/