mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
Merge pull request #63 from ibs0d/claude/fix-zoom-statistics-WFvOm
fix: show motion dot regardless of liveReady in grid callback path
This commit is contained in:
commit
838fb8471c
@ -301,15 +301,13 @@ export default function LivePlayer({
|
|||||||
onLoadingChangeRef.current?.(loading);
|
onLoadingChangeRef.current?.(loading);
|
||||||
}, [cameraEnabled, offline, showStillWithoutActivity, isReEnabling, liveReady]);
|
}, [cameraEnabled, offline, showStillWithoutActivity, isReEnabling, liveReady]);
|
||||||
|
|
||||||
|
// When the parent manages the dot via callback (grid view), show motion
|
||||||
|
// without gating on liveReady — the dot should reflect actual motion state
|
||||||
|
// regardless of stream load status to avoid the dot not appearing for
|
||||||
|
// cameras in continuous mode while the stream is reconnecting.
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const motionVisible = !!(
|
onActiveMotionChangeRef.current?.(!!(autoLive && !offline && activeMotion));
|
||||||
autoLive &&
|
}, [autoLive, offline, activeMotion]);
|
||||||
!offline &&
|
|
||||||
activeMotion &&
|
|
||||||
((showStillWithoutActivity && !liveReady) || liveReady)
|
|
||||||
);
|
|
||||||
onActiveMotionChangeRef.current?.(motionVisible);
|
|
||||||
}, [autoLive, offline, activeMotion, showStillWithoutActivity, liveReady]);
|
|
||||||
|
|
||||||
if (!cameraConfig) {
|
if (!cameraConfig) {
|
||||||
return <ActivityIndicator />;
|
return <ActivityIndicator />;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user