admin管理员组文章数量:1398195
I have an embedded HTML5 video that is autoplaying on iOs6.0.1 in mobile Safari without the autoplay attribute being present. Any ideas on what is going on or how to stop the autoplaying?
<video width="640" height="480" controls="controls" preload="metadata">
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
Thanks!
I have an embedded HTML5 video that is autoplaying on iOs6.0.1 in mobile Safari without the autoplay attribute being present. Any ideas on what is going on or how to stop the autoplaying?
<video width="640" height="480" controls="controls" preload="metadata">
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
Thanks!
Share Improve this question edited Nov 8, 2012 at 21:19 j08691 208k32 gold badges269 silver badges280 bronze badges asked Nov 8, 2012 at 21:15 JustinJustin 5663 gold badges10 silver badges30 bronze badges 2- Interesting, I've found that iOS doesn't even support autoplay with the autoplay tag (developer.apple./library/safari/#documentation/AudioVideo/…), but I've never seen it start playing automatically when you don't want it to. Can we have more code? – Joshua Dwire Commented Nov 8, 2012 at 21:36
- 2 Yeah, that's hard to believe since Apple very deliberately disabled autoplay and preload to protect iPhone customer bandwidth. Got a link? – heff Commented Nov 8, 2012 at 23:42
1 Answer
Reset to default 5Try adding this code: autoplay="false"
.
本文标签: javascriptHTML5 video autoplaying without autoplay attributeStack Overflow
版权声明:本文标题:javascript - HTML5 video autoplaying without autoplay attribute - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744174690a2593942.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论