From cb73e09f5335460302531a1cbdb862c42a0e674f Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 31 Jan 2024 06:38:27 -0700 Subject: [PATCH] Fix birdseye options --- web/src/pages/Live.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/src/pages/Live.tsx b/web/src/pages/Live.tsx index f4f0cf80f..90343dd44 100644 --- a/web/src/pages/Live.tsx +++ b/web/src/pages/Live.tsx @@ -37,8 +37,15 @@ function Live() { ); }, [config]); const restreamEnabled = useMemo(() => { + if (!config) { + return false; + } + + if (camera == "birdseye") { + return config.birdseye.restream; + } + return ( - config && cameraConfig && Object.keys(config.go2rtc.streams || {}).includes( cameraConfig.live.stream_name