关于这方面的信息很多,将自动播放或自动启动设置为 false 的修复方法似乎很简单。
只是对我根本不管用,能想到的各种组合都试过了。
我在 wordpress 的层 slider 幻灯片中嵌入视频,视频播放停止幻灯片从过渡到下一个。
如有任何帮助,我们将不胜感激。
以下是我尝试使用的各种方法的一些示例。在 Chrome 和 Safari 以及移动设备上都是同样的问题
<iframe width="560" height="315" src="https://www.youtube.com/embed/PhCLPGg2WOM?autoplay=0” frameborder="0" allowfullscreen=“></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/PhCLPGg2WOM?autoplay=false" type="audio/mpeg" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/tUJJv0EZSuI" frameborder="0" allowfullscreen autoplay="0" autostart="0" type="audio/mpeg"></iframe>
最佳答案
转到 slider 设置,然后关闭“视频”部分下的自动播放模式。因为它不处理它自己的代码。检查下面给出的链接,将会很有用。
https://wordpress.org/support/topic/stopping-autoplay-on-iframe-videos/
关于html - 无法停止自动播放 slider 中的 youtube 嵌入式视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43289036/