let time; video.addEventListener('timeupdate', (event) => { time = video.currentTime; console.log(time); }, {once:true});