From 673142052ef1f6f6a07f53e1cede6bc8ffef18b2 Mon Sep 17 00:00:00 2001 From: ashley Date: Sat, 6 Jul 2024 11:16:02 +0000 Subject: [PATCH] fix: remove autosync for now --- html/poketube.ejs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index cddd0422..081ed59d 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -777,22 +777,11 @@ background-color: #0000; } else { document.getElementById("popupMenu").style.display = "none" - } + } } playPauseButton.addEventListener("click", () => { toggleVideo() }); - setInterval(() => { - if(qua == "medium") - return; - if(Math.round(video.currentTime) - Math.round(aud.currentTime) > 1 || Math.round(video.currentTime) - Math.round(aud.currentTime) < -1 || Math.round(aud.currentTime) - Math.round(video.currentTime) > 1 || Math.round(aud.currentTime) - Math.round(video.currentTime) < -1) { - video.pause(); if(qua != "medium") { aud.pause(); } playPauseButton.innerHTML = playSVG; - video.currentTime > aud.currentTime ? aud.currentTime = video.currentTime : video.currentTime = aud.currentTime; - setTimeout(() => { - video.play(); if(qua != "medium") { aud.play(); } playPauseButton.innerHTML = pauseSVG; - }, 800) - } - }, 1000) video.addEventListener("click", toggleVideo); video.addEventListener("dblclick", () => { document.documentElement.requestFullscreen();