From b6ca0d17f94abc952059f5d891783a8c03b657b7 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 9 Feb 2024 07:36:29 -0700 Subject: [PATCH] don't flash when going to still image --- .../camera/AutoUpdatingCameraImage.tsx | 1 - web/src/components/player/LivePlayer.tsx | 28 ++++++++----------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/web/src/components/camera/AutoUpdatingCameraImage.tsx b/web/src/components/camera/AutoUpdatingCameraImage.tsx index 8bcced85b..2bfe4ca1b 100644 --- a/web/src/components/camera/AutoUpdatingCameraImage.tsx +++ b/web/src/components/camera/AutoUpdatingCameraImage.tsx @@ -7,7 +7,6 @@ type AutoUpdatingCameraImageProps = { showFps?: boolean; className?: string; reloadInterval?: number; - fitAspect?: number; }; const MIN_LOAD_TIMEOUT_MS = 200; diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx index 0ddd93161..c834faf35 100644 --- a/web/src/components/player/LivePlayer.tsx +++ b/web/src/components/player/LivePlayer.tsx @@ -157,22 +157,18 @@ export default function LivePlayer({ {(showStillWithoutActivity == false || activeMotion || activeTracking) && player} - {showStillWithoutActivity && !liveReady && ( -
- 2 || - cameraConfig.detect.width / cameraConfig.detect.height < 1 - ? cameraConfig.detect.width / cameraConfig.detect.height - : 16 / 9 - } - /> -
- )} +
+ +