Ver código fonte

fix(JitsiConference) send mute sourceInfo before removing an unmuted track

Workarounds around issue #2037 to have other participants receive the mute event and therefore avoid frozen camera bug
dev1
Jorge Oliveira 2 anos atrás
pai
commit
9b34e0f751
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3
    0
      JitsiConference.js

+ 3
- 0
JitsiConference.js Ver arquivo

@@ -1303,6 +1303,9 @@ JitsiConference.prototype.replaceTrack = function(oldTrack, newTrack) {
1303 1303
     // Now replace the stream at the lower levels
1304 1304
     return this._doReplaceTrack(oldTrackBelongsToConference ? oldTrack : null, newTrack)
1305 1305
         .then(() => {
1306
+            if (oldTrackBelongsToConference && !oldTrack.isMuted() && !newTrack) {
1307
+                oldTrack._sendMuteStatus(true);
1308
+            }
1306 1309
             oldTrackBelongsToConference && this.onLocalTrackRemoved(oldTrack);
1307 1310
             newTrack && this._setupNewTrack(newTrack);
1308 1311
 

Carregando…
Cancelar
Salvar