Fix case where go2rtc is not setup

This commit is contained in:
Nicolas Mowen 2024-05-27 09:42:07 -06:00
parent 596a11f479
commit 72897af3cd

View File

@ -135,14 +135,18 @@ export default function LivePlayer({
);
}
} else if (liveMode == "jsmpeg") {
player = (
<JSMpegPlayer
className="flex size-full justify-center overflow-hidden rounded-lg md:rounded-2xl"
camera={cameraConfig.live.stream_name}
width={cameraConfig.detect.width}
height={cameraConfig.detect.height}
/>
);
if (cameraActive) {
player = (
<JSMpegPlayer
className="flex size-full justify-center overflow-hidden rounded-lg md:rounded-2xl"
camera={cameraConfig.live.stream_name}
width={cameraConfig.detect.width}
height={cameraConfig.detect.height}
/>
);
} else {
player = null;
}
} else {
player = <ActivityIndicator />;
}