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();