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 JugaBootstrap : Uncaught Typeerror: $(...).datetimepicker Is Not A FunctionSite Behaves Differently When Developer Tools Are Open Ie11Express Ignoring Views Directory countdown = video.duration - video.currentTime Copy See here for more details Share You may like these postsHow Can I Pass A File List To A Bootbox Callback?How To Use A Recaptcha Token To Open A Captcha Prompt In A Different WindowReact/jsx Dynamic Component NamesDraw Wordcloud For Each Point In Scatterplot Post a Comment for "Countdown To The End Of The HTML5 Video"
Post a Comment for "Countdown To The End Of The HTML5 Video"