I have a looping HTML5 video using , and I want to know when the video loops. The event listener play only fires when the vi
play
I think the most reliable way is to loop it yourself. Remove the loop attribute and do this:
loop
document.querySelector('video').addEventListener('ended', function () { console.count('loop restart'); this.play(); })