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
+4 -1
View File
@@ -255,13 +255,16 @@ 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
// show the camera still already cover it
if (!showStillWithoutActivity) {
const frame = captureVideoFrame(overlayRef.current); const frame = captureVideoFrame(overlayRef.current);
if (frame) { if (frame) {
setSwitchFrame(frame); setSwitchFrame(frame);
} }
} }
} }
}
useEffect(() => { useEffect(() => {
if (showStillWithoutActivity && !autoLive) { if (showStillWithoutActivity && !autoLive) {