mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-29 07:24:56 +03:00
ensure we bail in the live mode hook for empty camera groups
prevent infinite rendering on camera groups with no cameras
This commit is contained in:
parent
fb3bb380fd
commit
3bcca216e1
@ -54,7 +54,7 @@ export default function useCameraLiveMode(
|
|||||||
}>({});
|
}>({});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!cameras) return;
|
if (!cameras || cameras.length === 0) return;
|
||||||
|
|
||||||
const mseSupported =
|
const mseSupported =
|
||||||
"MediaSource" in window || "ManagedMediaSource" in window;
|
"MediaSource" in window || "ManagedMediaSource" in window;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user