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(recording) Fix local recording (#12531)

Robert Pintilii19a9b17425da
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.web.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
index a9f4185c7d..fd96658e23 100644
--- a/react/features/recording/components/Recording/LocalRecordingManager.web.ts
+++ b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
@@ -219,6 +219,17 @@ const LocalRecordingManager: ILocalRecordingManager = {
permittedOrigins: [ '*' ]
});
}
+ const localAudioTrack = getLocalTrack(tracks, MEDIA_TYPE.AUDIO)?.jitsiTrack?.track;
+
+ // Starting chrome 107, the recorder does not record any data if the audio stream has no tracks
+ // To fix this we create a track for the local user(muted track)
+ if (!localAudioTrack) {
+ APP.conference.muteAudio(false);
+ setTimeout(() => APP.conference.muteAudio(true), 100);
+ await new Promise(resolve => {
+ setTimeout(resolve, 100);
+ });
+ }
const currentTitle = document.title;
@@ -244,9 +255,10 @@ const LocalRecordingManager: ILocalRecordingManager = {
}
this.initializeAudioMixer();
- this.mixAudioStream(gdmStream);
- tracks.forEach((track: any) => {
+ const allTracks = getTrackState(getState());
+
+ allTracks.forEach((track: any) => {
if (track.mediaType === MEDIA_TYPE.AUDIO) {
const audioTrack = track?.jitsiTrack?.track;