From 9060fd570c8c9bdca852be58fc93e898a39c84ed Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 29 May 2024 06:45:42 -0600 Subject: [PATCH] Quick fix --- web/src/components/player/LivePlayer.tsx | 2 +- web/src/views/live/LiveDashboardView.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx index fdcea8afc..af1d47f9c 100644 --- a/web/src/components/player/LivePlayer.tsx +++ b/web/src/components/player/LivePlayer.tsx @@ -249,7 +249,7 @@ export default function LivePlayer({
- {!offline && activeMotion && ( + {autoLive && !offline && activeMotion && ( )} {offline && ( diff --git a/web/src/views/live/LiveDashboardView.tsx b/web/src/views/live/LiveDashboardView.tsx index 34d25660d..508f00fe9 100644 --- a/web/src/views/live/LiveDashboardView.tsx +++ b/web/src/views/live/LiveDashboardView.tsx @@ -93,7 +93,7 @@ export default function LiveDashboardView({ // camera live views - const [autoLiveView] = usePersistence("autoLiveView"); + const [autoLiveView] = usePersistence("autoLiveView", true); const [windowVisible, setWindowVisible] = useState(true); const visibilityListener = useCallback(() => { setWindowVisible(document.visibilityState == "visible"); @@ -263,6 +263,7 @@ export default function LiveDashboardView({ } cameraConfig={camera} preferredLiveMode={isSafari ? "webrtc" : "mse"} + autoLive={autoLiveView} onClick={() => onSelectCamera(camera.name)} /> );