mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
Merge pull request #73 from ibs0d/claude/fix-zoom-statistics-WFvOm
Claude/fix zoom statistics w fv om
This commit is contained in:
commit
9cb7902a9d
@ -86,6 +86,7 @@ import {
|
||||
MdPersonOff,
|
||||
MdPersonSearch,
|
||||
MdPhotoCamera,
|
||||
MdCircle,
|
||||
} from "react-icons/md";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { TransformWrapper, TransformComponent } from "react-zoom-pan-pinch";
|
||||
@ -114,6 +115,7 @@ import { detectCameraAudioFeatures } from "@/utils/cameraUtil";
|
||||
import PtzControlPanel from "@/components/overlay/PtzControlPanel";
|
||||
import ObjectSettingsView from "../settings/ObjectSettingsView";
|
||||
import { useSearchEffect } from "@/hooks/use-overlay-state";
|
||||
import { useCameraActivity } from "@/hooks/use-camera-activity";
|
||||
import {
|
||||
downloadSnapshot,
|
||||
fetchCameraSnapshot,
|
||||
@ -190,6 +192,9 @@ export default function LiveCameraView({
|
||||
const { payload: enabledState } = useEnabledState(camera.name);
|
||||
const cameraEnabled = enabledState === "ON";
|
||||
|
||||
// motion dot
|
||||
const { activeMotion, offline: cameraOffline } = useCameraActivity(camera);
|
||||
|
||||
// for audio transcriptions
|
||||
|
||||
const { payload: audioTranscriptionState, send: sendTranscription } =
|
||||
@ -646,6 +651,7 @@ export default function LiveCameraView({
|
||||
className={`${fullscreen ? "*:rounded-none" : ""}`}
|
||||
windowVisible
|
||||
showStillWithoutActivity={false}
|
||||
showMotionDot={false}
|
||||
alwaysShowCameraName={false}
|
||||
cameraConfig={camera}
|
||||
playAudio={audio}
|
||||
@ -663,6 +669,11 @@ export default function LiveCameraView({
|
||||
/>
|
||||
</div>
|
||||
</TransformComponent>
|
||||
{activeMotion && !cameraOffline && (
|
||||
<div className="absolute right-4 top-4 z-40">
|
||||
<MdCircle className="size-2 animate-pulse text-danger drop-shadow-md" />
|
||||
</div>
|
||||
)}
|
||||
{camera?.audio?.enabled_in_config &&
|
||||
audioTranscriptionState == "ON" &&
|
||||
transcription != null && (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user