Browse Source

fix(large-video): return to dominant speaker without video

Always switch to the dominant speaker after unpinning
instead of conditionally checking if the current dominant
speaker has video.
master
Leonard Kim 8 years ago
parent
commit
fcb3ca836f
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      modules/UI/videolayout/VideoLayout.js

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

@@ -410,9 +410,7 @@ const VideoLayout = {
410 410
 
411 411
             // Enable the currently set dominant speaker.
412 412
             if (currentDominantSpeaker) {
413
-                if (smallVideo && smallVideo.hasVideo()) {
414
-                    this.updateLargeVideo(currentDominantSpeaker);
415
-                }
413
+                this.updateLargeVideo(currentDominantSpeaker);
416 414
             } else {
417 415
                 // if there is no currentDominantSpeaker, it can also be
418 416
                 // that local participant is the dominant speaker

Loading…
Cancel
Save