From e38f3dea87a1118938d23f9e62ab93456e3822cd Mon Sep 17 00:00:00 2001 From: ashley Date: Sat, 3 Aug 2024 19:46:37 +0000 Subject: [PATCH] fix this --- html/poketube.ejs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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);