Skip to content

NVR with realtime local object detection for IP cameras

Increase the initial stall timeout of the MSE player (#17359)

Josh Hawkins9080305070ff
diff --git a/web/src/components/player/MsePlayer.tsx b/web/src/components/player/MsePlayer.tsx
index 554eb5af1f..f3ef17a240 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),
);
}
}, [