Преглед изворни кода

Fixes unpinning local user which is dominant speaker.

It was not switching and staying on local video on unpinning, after change the last shown video will be used to switch to it.
master
damencho пре 8 година
родитељ
комит
8e6fd0ca95
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6
    0
      modules/UI/videolayout/VideoLayout.js

+ 6
- 0
modules/UI/videolayout/VideoLayout.js Прегледај датотеку

358
                 if(smallVideo && smallVideo.hasVideo()) {
358
                 if(smallVideo && smallVideo.hasVideo()) {
359
                     this.updateLargeVideo(currentDominantSpeaker);
359
                     this.updateLargeVideo(currentDominantSpeaker);
360
                 }
360
                 }
361
+            } else {
362
+                // if there is no currentDominantSpeaker, it can also be
363
+                // that local participant is the dominant speaker
364
+                // we should act as a participant has left and was on large
365
+                // and we should choose somebody (electLastVisibleVideo)
366
+                this.updateLargeVideo(this.electLastVisibleVideo());
361
             }
367
             }
362
 
368
 
363
             eventEmitter.emit(UIEvents.PINNED_ENDPOINT, smallVideo, false);
369
             eventEmitter.emit(UIEvents.PINNED_ENDPOINT, smallVideo, false);

Loading…
Откажи
Сачувај