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

This commit is contained in:
Josh Hawkins 2024-06-30 12:06:03 -05:00 committed by GitHub
parent f9e1ad253f
commit f050c7b37d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -384,6 +384,7 @@ function MSEPlayer({
onPlaying?.();
}}
muted={!audioEnabled}
onPause={() => videoRef.current?.play()}
onProgress={() => {
if ((isSafari || isIOS) && !safariPlaying) {
setSafariPlaying(true);