瀏覽代碼

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
     // Now replace the stream at the lower levels
1303
     // Now replace the stream at the lower levels
1304
     return this._doReplaceTrack(oldTrackBelongsToConference ? oldTrack : null, newTrack)
1304
     return this._doReplaceTrack(oldTrackBelongsToConference ? oldTrack : null, newTrack)
1305
         .then(() => {
1305
         .then(() => {
1306
+            if (oldTrackBelongsToConference && !oldTrack.isMuted() && !newTrack) {
1307
+                oldTrack._sendMuteStatus(true);
1308
+            }
1306
             oldTrackBelongsToConference && this.onLocalTrackRemoved(oldTrack);
1309
             oldTrackBelongsToConference && this.onLocalTrackRemoved(oldTrack);
1307
             newTrack && this._setupNewTrack(newTrack);
1310
             newTrack && this._setupNewTrack(newTrack);
1308
 
1311
 

Loading…
取消
儲存