如何在 Safari 浏览器上使用 iframe 标签停止视频自动播放
我正在网站中使用 Quick time 嵌入视频,它在加载页面时开始自动播放。
这是代码嵌入视频。
<iframe SRC="${signedVideoURL}&autoStart=false" TYPE="image/xmacpaint"PLUGINSPAGE="https://www.apple.com/quicktime/download"QTSRC="${signedvideoURL}&autoStart=false" WIDTH="480" HEIGHT="297" AUTOPLAY="false" CONTROLLER="true" SCALE="ToFit"> </iframe>
浏览器 - Safari 5.1.1
我也尝试过传递参数 autoplay=0 ,但这也不起作用。 任何人都可以建议如何停止这种自动播放吗?
谢谢
i am embedding a video using Quick time in website and it starts to play automatically upon loading page.
Here is the code embed video.
<iframe SRC="${signedVideoURL}&autoStart=false" TYPE="image/xmacpaint"PLUGINSPAGE="https://www.apple.com/quicktime/download"QTSRC="${signedvideoURL}&autoStart=false" WIDTH="480" HEIGHT="297" AUTOPLAY="false" CONTROLLER="true" SCALE="ToFit"> </iframe>
Browser - Safari 5.1.1
I have also tried passing parameter autoplay=0, that didnot work either.
Can any one suggest how to stop this autoplay?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不是 100% 确定这一点,但无论如何都要尝试一下(如果它不是真正的答案,它应该离它不远):将参数
autoplay=false
放在src 中
iframe
youtube 视频标记的字符串。像往常一样使用&
字符附加它。希望这有帮助
I'm not 100% sure of this but try it anyway (if its not the true answer, it shouldn't be far from it): put the argument
autoplay=false
in thesrc
String of theiframe
youtube video tag. Append it as usual with the&
character.Hope this helps
将
&autoplay=0
添加到您的网址Add
&autoplay=0
to your url