Create professional demos and 3D mockups in seconds, directly in your browser
fix(ui): hide floating camera during recording to avoid double-capture
Cris1c6b0c4f0216
diff --git a/app/components/ui/RecordingOverlay.tsx b/app/components/ui/RecordingOverlay.tsxindex 75113a3..8466c09 100644--- a/app/components/ui/RecordingOverlay.tsx+++ b/app/components/ui/RecordingOverlay.tsx@@ -19,8 +19,11 @@ export default function RecordingOverlay() {if (state === "idle") return null;- const showFloatingCamera =- (isCountdown || isRecording) && cameraStream && cameraConfig?.enabled;+ // Only show the floating camera during countdown. During recording, the preview+ // would be captured by the screen share on monitor/tab captures, producing a+ // duplicate camera in the final video. The camera is still recorded as a+ // separate track via getUserMedia and composited in the editor.+ const showFloatingCamera = isCountdown && cameraStream && cameraConfig?.enabled;const formatTime = (seconds: number) => {const mins = Math.floor(seconds / 60);