fixes lol
All checks were successful
Build and Push / build-all (push) Successful in 1m57s

This commit is contained in:
doomtube 2026-01-09 18:37:34 -05:00
parent 954755fbc3
commit 6bbfc671b3
35 changed files with 94 additions and 310 deletions

View file

@ -185,6 +185,13 @@
const currentTime = player.getCurrentTime();
const drift = Math.abs(currentTime - expectedTime);
// Skip drift detection when video has ended - the player is stuck at end time
// and expected time keeps advancing, causing infinite "Controller seek detected" loop
if (hasVideoEnded) {
// Video ended - don't try to sync, wait for skip/next
return;
}
// Check if we need to sync (tight 2-second threshold like CyTube)
if (drift > DRIFT_THRESHOLD) {
if ($canControl) {