diff --git a/www/app/[domain]/transcripts/recorder.tsx b/www/app/[domain]/transcripts/recorder.tsx index 435ea7b4..4b2e8eb0 100644 --- a/www/app/[domain]/transcripts/recorder.tsx +++ b/www/app/[domain]/transcripts/recorder.tsx @@ -232,8 +232,12 @@ export default function Recorder(props: RecorderProps) { if (record.isRecording()) { if (props.onStop) props.onStop(); record.stopRecording(); + if (screenMediaStream) { + screenMediaStream.getTracks().forEach((t) => t.stop()); + } setIsRecording(false); setHasRecorded(true); + setScreenMediaStream(null); setDestinationStream(null); } else { const stream = await getCurrentStream();