From a39c020b34b8882cedd7bf5049f03d470fdb1d26 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:39:10 -0700 Subject: [PATCH] only disable source if it's fatal --- src/pages/parts/player/PlaybackErrorPart.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pages/parts/player/PlaybackErrorPart.tsx b/src/pages/parts/player/PlaybackErrorPart.tsx index d29cd986..1026a237 100644 --- a/src/pages/parts/player/PlaybackErrorPart.tsx +++ b/src/pages/parts/player/PlaybackErrorPart.tsx @@ -38,8 +38,15 @@ export function PlaybackErrorPart(props: PlaybackErrorPartProps) { // Mark the failed source and handle UI when a playback error occurs useEffect(() => { if (playbackError && currentSourceId) { - // Mark this source as failed - addFailedSource(currentSourceId); + // Only mark source as failed for fatal errors + const isFatalError = + playbackError.type === "hls" + ? (playbackError.hls?.fatal ?? false) + : playbackError.type === "htmlvideo"; + + if (isFatalError) { + addFailedSource(currentSourceId); + } if (!hasOpenedSettings.current && !enableAutoResumeOnPlaybackError) { hasOpenedSettings.current = true;