Countdown To The End Of The HTML5 Video July 24, 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 JugaNativescript Getviewbyid Not Updating For Count DownBootstrap : Uncaught Typeerror: $(...).datetimepicker Is Not A FunctionSite Behaves Differently When Developer Tools Are Open Ie11 countdown = video.duration - video.currentTime Copy See here for more details Share You may like these postsHow To Resume Embedded Youtube Video?Multiple Responsive Video.js PlayersFancybox Video Highlight With Nothing In RailsHow To Play Videos One After Another Without Gap Post a Comment for "Countdown To The End Of The HTML5 Video"
Post a Comment for "Countdown To The End Of The HTML5 Video"