瀏覽代碼

Merge pull request #1160 from jitsi/fix-unpinning-local-dominant-speaker

Fixes unpinning local user which is dominant speaker.
master
hristoterezov 8 年之前
父節點
當前提交
57b0736ebb
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      modules/UI/videolayout/VideoLayout.js

+ 6
- 0
modules/UI/videolayout/VideoLayout.js 查看文件

@@ -358,6 +358,12 @@ var VideoLayout = {
358 358
                 if(smallVideo && smallVideo.hasVideo()) {
359 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 369
             eventEmitter.emit(UIEvents.PINNED_ENDPOINT, smallVideo, false);

Loading…
取消
儲存