diff --git a/html/poketube.ejs b/html/poketube.ejs index 01c332f5..2f4e81d2 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -679,12 +679,7 @@ background-color: #0000; audio.pause(); }); - video.on('timeupdate', () => { - if (Math.abs(video.currentTime() - audio.currentTime) > 0.3) { - audio.pause(); // Pause audio if it's not in sync - audio.currentTime = video.currentTime(); - } - }); + video.on('seeking', handleSeek);