NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
WebUI Fixes (#10608)
Nicolas Mowen83517f59b46b
diff --git a/web/src/components/player/PreviewPlayer.tsx b/web/src/components/player/PreviewPlayer.tsxindex a299cf9ec9..212779f3ab 100644--- a/web/src/components/player/PreviewPlayer.tsx+++ b/web/src/components/player/PreviewPlayer.tsx@@ -352,7 +352,8 @@ function PreviewFramesPlayer({}return previewFrames.map((frame) =>- parseFloat(frame.split("-")[1].slice(undefined, -5)),+ // @ts-expect-error we know this item will exist+ parseFloat(frame.split("-").slice(undefined, -5)),);}, [previewFrames]);diff --git a/web/src/components/player/PreviewThumbnailPlayer.tsx b/web/src/components/player/PreviewThumbnailPlayer.tsxindex 5e9a5c651c..c57e1041cd 100644--- a/web/src/components/player/PreviewThumbnailPlayer.tsx+++ b/web/src/components/player/PreviewThumbnailPlayer.tsx@@ -171,7 +171,7 @@ export default function PreviewThumbnailPlayer({{...swipeHandlers}>{playingBack && (- <div className="absolute inset-0 animate-in fade-in">+ <div className="absolute inset-0 animate-in fade-in pointer-events-none"><PreviewContentreview={review}relevantPreview={relevantPreview}@@ -486,10 +486,10 @@ function VideoPreview({);return (- <div className="relative size-full aspect-video bg-black">+ <div className="relative size-full aspect-video bg-black pointer-events-none"><videoref={playerRef}- className="size-full aspect-video bg-black"+ className="size-full aspect-video bg-black pointer-events-none"autoPlayplaysInlinepreload="auto"@@ -500,7 +500,7 @@ function VideoPreview({</video><Sliderref={sliderRef}- className="absolute inset-x-0 bottom-0 z-30"+ className="absolute inset-x-0 bottom-0 z-30 pointer-events-none"value={[progress]}onValueChange={onManualSeek}onValueCommit={onStopManualSeek}@@ -654,7 +654,7 @@ function InProgressPreview({}return (- <div className="relative size-full flex items-center bg-black">+ <div className="relative size-full flex items-center bg-black pointer-events-none"><imgclassName="size-full object-contain"src={`${apiHost}api/preview/${previewFrames[key]}/thumbnail.webp`}@@ -681,8 +681,8 @@ function PreviewPlaceholder({ imgLoaded }: { imgLoaded: boolean }) {}return isSafari ? (- <div className={`absolute inset-0 bg-gray-300`} />+ <div className={`absolute inset-0 bg-gray-300 pointer-events-none`} />) : (- <Skeleton className={`absolute inset-0`} />+ <Skeleton className={`absolute inset-0 pointer-events-none`} />);}diff --git a/web/src/components/player/dynamic/DynamicVideoController.ts b/web/src/components/player/dynamic/DynamicVideoController.tsindex d309764470..ce40fa719e 100644--- a/web/src/components/player/dynamic/DynamicVideoController.ts+++ b/web/src/components/player/dynamic/DynamicVideoController.ts@@ -42,6 +42,10 @@ export class DynamicVideoController {}}+ play() {+ this.playerController.play();+ }+pause() {this.playerController.pause();}diff --git a/web/src/views/events/RecordingView.tsx b/web/src/views/events/RecordingView.tsxindex 2c5b3fa611..ad3f3262b3 100644--- a/web/src/views/events/RecordingView.tsx+++ b/web/src/views/events/RecordingView.tsx@@ -147,6 +147,8 @@ export function RecordingView({} else {updateSelectedSegment(currentTime, true);}+ } else {+ mainControllerRef.current?.play();}}// we only want to seek when current time doesn't match the player update time