Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(local-recording): close AudioContext on recording stop

yash192735539c077263
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.web.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
index 930c483da0..00be52b460 100644
--- a/react/features/recording/components/Recording/LocalRecordingManager.web.ts
+++ b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
@@ -279,6 +279,7 @@ const LocalRecordingManager: ILocalRecordingManager = {
// The stop event is emitted when the recorder is done, and _after_ the last buffered
// data has been handed over to the dataavailable event.
this.recorder = undefined;
+ this.audioContext?.close();
this.audioContext = undefined;
this.audioDestination = undefined;
this.startTime = undefined;