Html 5 Video Ended
Im trying to listen to the video 'ended' event from the HTML 5 video tag. It seems to be fired very imtermitently during testing. Most times it doesnt get sent at all. I have en
Solution 1:
It seems a video sometimes stops playing just before the actual duration time. Something like 0.0000025 secs before, which means the ended event isnt sent.
To fix this im rounding the duration and checking the current time on a setInterval.
//duration = 5.26 ( rounded down from 5.2600041)if(this.video.currentTime >= this.duration) {
//VIDEO ENDED
}
Post a Comment for "Html 5 Video Ended"