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

Fixes unpinning local user which is dominant speaker.
pull/1163/head 1522
hristoterezov 8 years ago committed by GitHub
commit 57b0736ebb
  1. 6
      modules/UI/videolayout/VideoLayout.js

@ -358,6 +358,12 @@ var VideoLayout = {
if(smallVideo && smallVideo.hasVideo()) {
this.updateLargeVideo(currentDominantSpeaker);
}
} else {
// if there is no currentDominantSpeaker, it can also be
// that local participant is the dominant speaker
// we should act as a participant has left and was on large
// and we should choose somebody (electLastVisibleVideo)
this.updateLargeVideo(this.electLastVisibleVideo());
}
eventEmitter.emit(UIEvents.PINNED_ENDPOINT, smallVideo, false);

Loading…
Cancel
Save