mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-14 01:23:01 +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);
|
||||
|
||||
// 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
|
||||
const frame = captureVideoFrame(overlayRef.current);
|
||||
if (frame) {
|
||||
setSwitchFrame(frame);
|
||||
// last frame can cover the gap until the new stream plays. Tiles that
|
||||
// show the camera still already cover it
|
||||
if (!showStillWithoutActivity) {
|
||||
const frame = captureVideoFrame(overlayRef.current);
|
||||
if (frame) {
|
||||
setSwitchFrame(frame);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user