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

This commit is contained in:
Nicolas Mowen
2023-06-14 06:49:32 -06:00
committed by GitHub
parent a8f282515f
commit ff1b5c87aa

View File

@@ -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>