From f27de6dc3dcc829f914b889cf7d5d2c9df04b19d Mon Sep 17 00:00:00 2001 From: Tommy Chow Date: Sun, 8 Mar 2026 17:29:11 -0700 Subject: [PATCH] remove auto seek-to-live-edge to fix random pausing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/screens/channel/video/native_video_store.dart | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/screens/channel/video/native_video_store.dart b/lib/screens/channel/video/native_video_store.dart index e0ebf2c9..0d5a29bd 100644 --- a/lib/screens/channel/video/native_video_store.dart +++ b/lib/screens/channel/video/native_video_store.dart @@ -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