From fb0838558f94db5826d567ea876b1fe87a7927a0 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 21 Dec 2025 22:09:21 -0600 Subject: [PATCH] use fallback timeout for opening media source covers the case where there is no active connection to the go2rtc stream and the camera takes a long time to start --- web/src/components/player/MsePlayer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/player/MsePlayer.tsx b/web/src/components/player/MsePlayer.tsx index e643530a4..bab00a2f8 100644 --- a/web/src/components/player/MsePlayer.tsx +++ b/web/src/components/player/MsePlayer.tsx @@ -260,7 +260,7 @@ function MSEPlayer({ // @ts-expect-error for typing value: codecs(MediaSource.isTypeSupported), }, - 3000, + (fallbackTimeout ?? 3) * 1000, ).catch(() => { if (wsRef.current) { onDisconnect(); @@ -290,7 +290,7 @@ function MSEPlayer({ type: "mse", value: codecs(MediaSource.isTypeSupported), }, - 3000, + (fallbackTimeout ?? 3) * 1000, ).catch(() => { if (wsRef.current) { onDisconnect();