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:
Josh Hawkins 2025-12-16 22:26:47 -06:00
parent fb3bb380fd
commit 3bcca216e1

View File

@ -54,7 +54,7 @@ export default function useCameraLiveMode(
}>({});
useEffect(() => {
if (!cameras) return;
if (!cameras || cameras.length === 0) return;
const mseSupported =
"MediaSource" in window || "ManagedMediaSource" in window;