瀏覽代碼

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 年之前
父節點
當前提交
9b34e0f751
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      JitsiConference.js

+ 3
- 0
JitsiConference.js 查看文件

@@ -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
 

Loading…
取消
儲存