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
Add a ment  | 

1 Answer 1

Reset to default 5

Try adding this code: autoplay="false".

本文标签: javascriptHTML5 video autoplaying without autoplay attributeStack Overflow