Fix stream name not being used for MSE

This commit is contained in:
Nicolas Mowen 2023-06-14 06:37:59 -06:00 committed by GitHub
parent a8f282515f
commit 21b86f7079
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>