Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(recording): use cloned tracks for local recording; reset flags on stop (#16535)
Harsh_w/n9832c7a226df
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.web.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.tsindex fce51aabe5..930c483da0 100644--- a/react/features/recording/components/Recording/LocalRecordingManager.web.ts+++ b/react/features/recording/components/Recording/LocalRecordingManager.web.ts@@ -180,8 +180,8 @@ const LocalRecordingManager: ILocalRecordingManager = {this.selfRecording.withVideo = Boolean(videoTrack);const localTracks: MediaStreamTrack[] = [];- audioTrack && localTracks.push(audioTrack);- videoTrack && localTracks.push(videoTrack);+ audioTrack && localTracks.push(audioTrack.clone());+ videoTrack && localTracks.push(videoTrack.clone());this.stream = new MediaStream(localTracks);} else {if (supportsCaptureHandle) {@@ -282,6 +282,9 @@ const LocalRecordingManager: ILocalRecordingManager = {this.audioContext = undefined;this.audioDestination = undefined;this.startTime = undefined;+ this.stream = undefined;+ this.selfRecording.on = false;+ this.selfRecording.withVideo = false;if (this.writableStream) {try {