Browse Source

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 years ago
parent
commit
d1ea29beeb
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      modules/UI/videolayout/VideoLayout.js

+ 3
- 1
modules/UI/videolayout/VideoLayout.js View File

@@ -263,7 +263,9 @@ var VideoLayout = {
263 263
      * otherwise elects new video, in this order.
264 264
      */
265 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 269
             return;
268 270
         }
269 271
 

Loading…
Cancel
Save