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-rec) Fix audio only recording (self) (#13442)

Robert Pintiliic8a87e368a4f
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.web.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
index 1e379b9d18..c50ee870fe 100644
--- a/react/features/recording/components/Recording/LocalRecordingManager.web.ts
+++ b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
@@ -70,6 +70,9 @@ const LocalRecordingManager: ILocalRecordingManager = {
},
get mediaType() {
+ if (this.selfRecording.on && !this.selfRecording.withVideo) {
+ return 'audio/webm;';
+ }
if (!preferredMediaType) {
preferredMediaType = getMimeType();
}