From 68e6ffdfefccfa6e46c60398c97500134a562fda Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 21 Jul 2024 13:14:59 -0600 Subject: [PATCH] UI fixes (#12542) * Don't require previews to show motion ui * Fix recording text to match hls player logic --- web/src/components/player/dynamic/DynamicVideoPlayer.tsx | 2 +- web/src/views/events/EventView.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/player/dynamic/DynamicVideoPlayer.tsx b/web/src/components/player/dynamic/DynamicVideoPlayer.tsx index 9e2d9a353..a40d521ea 100644 --- a/web/src/components/player/dynamic/DynamicVideoPlayer.tsx +++ b/web/src/components/player/dynamic/DynamicVideoPlayer.tsx @@ -238,7 +238,7 @@ export default function DynamicVideoPlayer({ {!isScrubbing && (isLoading || isBuffering) && !noRecording && ( )} - {!isScrubbing && noRecording && ( + {!isScrubbing && !isLoading && noRecording && (
No recordings found for this time
diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsx index ec92c00ad..1852af8b4 100644 --- a/web/src/views/events/EventView.tsx +++ b/web/src/views/events/EventView.tsx @@ -957,7 +957,7 @@ function MotionReview({ ); } - if (!relevantPreviews) { + if (relevantPreviews == undefined) { return ; } @@ -999,7 +999,7 @@ function MotionReview({ camera={camera.name} timeRange={currentTimeRange} startTime={previewStart} - cameraPreviews={relevantPreviews || []} + cameraPreviews={relevantPreviews} isScrubbing={scrubbing} onControllerReady={(controller) => { videoPlayersRef.current[camera.name] = controller;