Skip to content

NVR with realtime local object detection for IP cameras

Use camera name instead of stream_name for jsmpeg players (#12219)

Josh Hawkinsf050c7b37df3
diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx
index 8ccb1b45fd..1343e8aaed 100644
--- a/web/src/components/player/LivePlayer.tsx
+++ b/web/src/components/player/LivePlayer.tsx
@@ -171,7 +171,7 @@ export default function LivePlayer({
player = (
<JSMpegPlayer
className="flex justify-center overflow-hidden rounded-lg md:rounded-2xl"
- camera={cameraConfig.live.stream_name}
+ camera={cameraConfig.name}
width={cameraConfig.detect.width}
height={cameraConfig.detect.height}
playbackEnabled={cameraActive || !showStillWithoutActivity}
diff --git a/web/src/components/player/MsePlayer.tsx b/web/src/components/player/MsePlayer.tsx
index c2769cd940..317520f57a 100644
--- a/web/src/components/player/MsePlayer.tsx
+++ b/web/src/components/player/MsePlayer.tsx
@@ -384,6 +384,7 @@ function MSEPlayer({
onPlaying?.();
}}
muted={!audioEnabled}
+ onPause={() => videoRef.current?.play()}
onProgress={() => {
if ((isSafari || isIOS) && !safariPlaying) {
setSafariPlaying(true);