don't capture the switch frame on tiles that show the camera still

This commit is contained in:
Josh Hawkins
2026-11-13 10:42:57 -06:00
parent 3575049cd7
commit 746b733d8b
+7 -4
View File
@@ -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);
}
} }
} }
} }