Countdown To The End Of The HTML5 Video November 22, 2022 Post a Comment Can I make a countdown to the end of the HTML5 video? Solution 1: Listen to the timeupdate event fired by the video object and update the time remaining. Something like this should work: var video = document.getElementById('video'); video.addEventListener('timeupdate', updateCountdown); function updateCountdown() { var timeSpan = document.querySelector('#countdown span'); timeSpan.innerText = video.duration - video.currentTime; } Copy Solution 2: This should do the trick for youBaca JugaBad Quality For 100% Both Width And Height Of CanvasWhy Inline And Inline-block Have Different Height With The Same Text ContentJquery Nested Functions Not Working countdown = video.duration - video.currentTime Copy See here for more details Share Post a Comment for "Countdown To The End Of The HTML5 Video"
Post a Comment for "Countdown To The End Of The HTML5 Video"