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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>