Reputation: 749
Seek time is at 10 secs position, but it won't start playing automatically.
Why? and how can I fix?
My current code is just like this
<script type="text/javascript">
document.getElementById("video").addEventListener("loadedmetadata", function() {
this.currentTime = 10;
this.autoplay = true;
}, false);
</script>
Upvotes: 1
Views: 98
Reputation: 360
FYI Some mobile devices do not respect auto play settings for video - iPad, iPhone for example
Upvotes: 1
Reputation: 46
Try this:
<script type="text/javascript">
document.getElementById("video").addEventListener("loadedmetadata", function() {
this.currentTime = 10;
this.play();
}, false);</script>
Upvotes: 2