Revert "fix(ui): enforce must-watch seek lock after the seek settles"

This reverts commit 9de0615e0f.
This commit is contained in:
Rotimi Best
2026-06-22 10:42:30 +01:00
parent 9de0615e0f
commit 4e2e02e7e7
@@ -116,12 +116,6 @@
const onSeeked = () => {
isSeeking = false;
// Re-enforce once the seek settles: setting currentTime during `seeking`
// doesn't always stick (HLS re-buffering can win the in-flight seek), so
// snap back here if the player still ended up ahead.
if (player.currentTime > furthestSeconds + seekTolerance) {
player.currentTime = furthestSeconds;
}
hasBlockedThisSeek = false;
lastValidTime = player.currentTime;
};
@@ -132,14 +126,6 @@
const current = player.currentTime;
const delta = current - lastValidTime;
// Backstop: a forward jump beyond normal playback that slipped past the
// `seeking`/`seeked` handlers. Clamp back so playback can't continue ahead.
if (delta >= 2 && current > furthestSeconds + seekTolerance) {
player.currentTime = furthestSeconds;
lastValidTime = furthestSeconds;
return;
}
if (delta > 0 && delta < 2) {
playedSeconds += delta;
furthestSeconds = Math.max(furthestSeconds, current);