Countdown To The End Of The Html5 Video March 07, 2024 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); functionupdateCountdown() { var timeSpan = document.querySelector('#countdown span'); timeSpan.innerText = video.duration - video.currentTime; } CopySolution 2: This should do the trick for youBaca JugaHow To Pass Data To C3 GraphPrevent Html5 Videos From Downloading The Files On Mobile - VideojsLoading Html Video With Jquerycountdown = video.duration - video.currentTime CopySee here for more details Share You may like these postsModal Form Clearing When A Field Is SelectedHow To Get Route Data Into App Component In Angular 2Autocomplete Textbox With HyperlinkNew Breeze 1.4.9 - Duplicate Entity - Possible Bug? Post a Comment for "Countdown To The End Of The Html5 Video"
Post a Comment for "Countdown To The End Of The Html5 Video"