我正在尝试使用以下代码从我的页面上的iframe
加载来自不同网站的视频。
我使用的技术基本上就是让视频播放器部分在我的页面上可见,就像在iframe中加载Youtube视频一样,但只是让视频播放器可见,但我不能让视频停止自动播放。
我用的是allow="autoplay 'none'" autoplay="0" autostart="0"
,但视频仍然是自动播放的。谁能告诉我怎样才能让视频停止自动播放?
<div style="border: 3px solid white; overflow: hidden; margin: 5px auto; max-width: 736px;">
<p>
<iframe scrolling="no" src="https://VideoSource/media/ReleaseVideo" allow="autoplay 'none'" autoplay="0" autostart="0" style="font-size: 1rem; border-width: 0px; border-style: none; margin-left: -100px; height: 500px; margin-top: -75px; width: 926px;"></iframe>
</p><br>
</div>
谢谢
发布于 2021-05-27 22:35:53
使用autostart="false"
而不是autostart="0"
。
这样:
<div style="border: 3px solid white; overflow: hidden; margin: 5px auto; max-width: 736px;">
<p>
<iframe scrolling="no" src="https://VideoSource/media/ReleaseVideo" allow="autoplay 'none'" autoplay="0" autostart="false" style="font-size: 1rem; border-width: 0px; border-style: none; margin-left: -100px; height: 500px; margin-top: -75px; width: 926px;"></iframe>
</p><br>
</div>
https://stackoverflow.com/questions/66123224
复制相似问题