mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 14:47: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);
|
||||
}, [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(() => {
|
||||
const motionVisible = !!(
|
||||
autoLive &&
|
||||
!offline &&
|
||||
activeMotion &&
|
||||
((showStillWithoutActivity && !liveReady) || liveReady)
|
||||
);
|
||||
onActiveMotionChangeRef.current?.(motionVisible);
|
||||
}, [autoLive, offline, activeMotion, showStillWithoutActivity, liveReady]);
|
||||
onActiveMotionChangeRef.current?.(!!(autoLive && !offline && activeMotion));
|
||||
}, [autoLive, offline, activeMotion]);
|
||||
|
||||
if (!cameraConfig) {
|
||||
return <ActivityIndicator />;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user