This commit is contained in:
parent
954755fbc3
commit
6bbfc671b3
35 changed files with 94 additions and 310 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue