From 9080305070ff789b6f39feb478354deba948bdcb Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 25 Mar 2025 08:16:56 -0500 Subject: [PATCH] Increase the initial stall timeout of the MSE player (#17359) --- web/src/components/player/MsePlayer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/player/MsePlayer.tsx b/web/src/components/player/MsePlayer.tsx index 554eb5af1..f3ef17a24 100644 --- a/web/src/components/player/MsePlayer.tsx +++ b/web/src/components/player/MsePlayer.tsx @@ -461,6 +461,7 @@ function MSEPlayer({ setBufferTimeout(undefined); } + const timeoutDuration = bufferTime == 0 ? 5000 : 3000; setBufferTimeout( setTimeout(() => { if ( @@ -471,7 +472,7 @@ function MSEPlayer({ onDisconnect(); onError("stalled"); } - }, 3000), + }, timeoutDuration), ); } }, [