浏览代码

fix(receiver constraints): source name not found

...when new participant joins.

Repro steps:

1. With p2p disabled and source name signaling enabled.
2. Start a call with 2 tabs.
3. Reload the 2nd tab.
4. The receiver constraints should be updated when the 2nd
   user rejoins. They were not updated, because
   getTrackSourceNameByMediaTypeAndParticipant doesn't have
   the track yet at the time when visibleRemoteParticipants
   are updated. This is fixed by also checking on
   the remote tracks state.
master
Pawel Domas 3 年前
父节点
当前提交
0936a64d3f
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      react/features/video-quality/subscriber.js

+ 6
- 0
react/features/video-quality/subscriber.js 查看文件

@@ -30,6 +30,12 @@ StateListenerRegistry.register(
30 30
         _updateReceiverVideoConstraints(store);
31 31
     }, 100));
32 32
 
33
+StateListenerRegistry.register(
34
+    /* selector */ state => state['features/base/tracks'],
35
+    /* listener */(remoteTracks, store) => {
36
+        _updateReceiverVideoConstraints(store);
37
+    });
38
+
33 39
 /**
34 40
  * Handles the use case when the on-stage participant has changed.
35 41
  */

正在加载...
取消
保存