mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Use camera name instead of stream_name for jsmpeg players (#12219)
This commit is contained in:
parent
f9e1ad253f
commit
f050c7b37d
@ -171,7 +171,7 @@ export default function LivePlayer({
|
|||||||
player = (
|
player = (
|
||||||
<JSMpegPlayer
|
<JSMpegPlayer
|
||||||
className="flex justify-center overflow-hidden rounded-lg md:rounded-2xl"
|
className="flex justify-center overflow-hidden rounded-lg md:rounded-2xl"
|
||||||
camera={cameraConfig.live.stream_name}
|
camera={cameraConfig.name}
|
||||||
width={cameraConfig.detect.width}
|
width={cameraConfig.detect.width}
|
||||||
height={cameraConfig.detect.height}
|
height={cameraConfig.detect.height}
|
||||||
playbackEnabled={cameraActive || !showStillWithoutActivity}
|
playbackEnabled={cameraActive || !showStillWithoutActivity}
|
||||||
|
@ -384,6 +384,7 @@ function MSEPlayer({
|
|||||||
onPlaying?.();
|
onPlaying?.();
|
||||||
}}
|
}}
|
||||||
muted={!audioEnabled}
|
muted={!audioEnabled}
|
||||||
|
onPause={() => videoRef.current?.play()}
|
||||||
onProgress={() => {
|
onProgress={() => {
|
||||||
if ((isSafari || isIOS) && !safariPlaying) {
|
if ((isSafari || isIOS) && !safariPlaying) {
|
||||||
setSafariPlaying(true);
|
setSafariPlaying(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user