Skip to content

NVR with realtime local object detection for IP cameras

Fix stream name not being used for MSE (#6796)

Nicolas Mowenff1b5c87aaef
diff --git a/web/src/routes/Camera.jsx b/web/src/routes/Camera.jsx
index f8652ba055..7f5e3ca772 100644
--- a/web/src/routes/Camera.jsx
+++ b/web/src/routes/Camera.jsx
@@ -121,7 +121,7 @@ export default function Camera({ camera }) {
<div className="max-w-5xl">
<video-stream
mode="mse"
- src={new URL(`${baseUrl.replace(/^http/, 'ws')}live/webrtc/api/ws?src=${camera}`)}
+ src={new URL(`${baseUrl.replace(/^http/, 'ws')}live/webrtc/api/ws?src=${cameraConfig.live.stream_name}`)}
/>
</div>
</Fragment>