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-recordings) fix on Chrome

Saúl Ibarra Corretgée8317fccfee7
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.web.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
index c50ee870fe..6cd99598dc 100644
--- a/react/features/recording/components/Recording/LocalRecordingManager.web.ts
+++ b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
@@ -36,9 +36,6 @@ interface ILocalRecordingManager {
const getMimeType = (): string => {
const possibleTypes = [
- 'video/mp4;codecs=h264',
- 'video/webm;codecs=h264',
- 'video/webm;codecs=vp9',
'video/webm;codecs=vp8'
];
@@ -164,7 +161,11 @@ const LocalRecordingManager: ILocalRecordingManager = {
this.audioContext = undefined;
this.audioDestination = undefined;
this.totalSize = MAX_SIZE;
- setTimeout(() => this.saveRecording(this.recordingData, this.getFilename()), 1000);
+ setTimeout(() => {
+ if (this.recordingData.length > 0) {
+ this.saveRecording(this.recordingData, this.getFilename());
+ }
+ }, 1000);
}
},