mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 16:44:29 +03:00
ensure still image is visible after switching stream type to none
This commit is contained in:
parent
9e34041e10
commit
d8891e2817
@ -161,6 +161,12 @@ export default function LivePlayer({
|
|||||||
}
|
}
|
||||||
}, [streamName]);
|
}, [streamName]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (showStillWithoutActivity && !autoLive) {
|
||||||
|
setLiveReady(false);
|
||||||
|
}
|
||||||
|
}, [showStillWithoutActivity, autoLive]);
|
||||||
|
|
||||||
const playerIsPlaying = useCallback(() => {
|
const playerIsPlaying = useCallback(() => {
|
||||||
setLiveReady(true);
|
setLiveReady(true);
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user