remove auto seek-to-live-edge to fix random pausing
The seekToLiveEdge call was firing too aggressively — on initial load latency reports inflated values before the player stabilizes, and each seek interrupts playback. The refresh button handles manual recovery if the viewer falls behind. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b2039e1cd8
commit
f27de6dc3d
1 changed files with 0 additions and 8 deletions
|
|
@ -241,11 +241,6 @@ abstract class NativeVideoStoreBase with Store implements VideoPlayerInterface {
|
|||
_latency = '${rounded}s';
|
||||
});
|
||||
|
||||
// Auto seek to live edge if we've drifted too far.
|
||||
if (seconds > 15) {
|
||||
await _controller?.seekToLiveEdge();
|
||||
}
|
||||
|
||||
if (!settingsStore.autoSyncChatDelay) return;
|
||||
|
||||
// Only update when unset or drifted by >2s to avoid restarting
|
||||
|
|
@ -437,9 +432,6 @@ abstract class NativeVideoStoreBase with Store implements VideoPlayerInterface {
|
|||
@action
|
||||
void handleAppResume() {
|
||||
updateStreamInfo(forceUpdate: true);
|
||||
// Re-check latency immediately — the stream may have drifted or died
|
||||
// while backgrounded. If latency > 15s, _pollLatency auto-seeks to live edge.
|
||||
_pollLatency();
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue