浏览代码

fix(large-video): ensure switch to local video when all others leave (#1607)

* fix(large-video): ensure switch to local video when all others leave

This handles the case where User A and B are in a call and B has
no audio or video. Then B leaves. User A would see User B left
on large video. Instead, User A should see self view on large.

* squash: always update large video if it is empty

* squash: add largeVideo check for filmstrip only mode
master
virtuacoplenny 8 年前
父节点
当前提交
d1ea29beeb
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      modules/UI/videolayout/VideoLayout.js

+ 3
- 1
modules/UI/videolayout/VideoLayout.js 查看文件

263
      * otherwise elects new video, in this order.
263
      * otherwise elects new video, in this order.
264
      */
264
      */
265
     updateAfterThumbRemoved (id) {
265
     updateAfterThumbRemoved (id) {
266
-        if (!this.isCurrentlyOnLarge(id)) {
266
+        // Always trigger an update if large video is empty.
267
+        if (!largeVideo
268
+            || (this.getLargeVideoID() && !this.isCurrentlyOnLarge(id))) {
267
             return;
269
             return;
268
         }
270
         }
269
 
271
 

正在加载...
取消
保存