mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-14 09:33:00 +03:00
don't capture the switch frame on tiles that show the camera still
This commit is contained in:
@@ -255,10 +255,13 @@ export default function LivePlayer({
|
|||||||
setLiveReady(false);
|
setLiveReady(false);
|
||||||
|
|
||||||
// the old video is still in the DOM until this render commits, so its
|
// the old video is still in the DOM until this render commits, so its
|
||||||
// last frame can cover the gap until the new stream plays
|
// last frame can cover the gap until the new stream plays. Tiles that
|
||||||
const frame = captureVideoFrame(overlayRef.current);
|
// show the camera still already cover it
|
||||||
if (frame) {
|
if (!showStillWithoutActivity) {
|
||||||
setSwitchFrame(frame);
|
const frame = captureVideoFrame(overlayRef.current);
|
||||||
|
if (frame) {
|
||||||
|
setSwitchFrame(frame);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user