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.
This commit is contained in:
Leonard Kim 2017-11-14 11:08:18 -08:00 committed by yanas
parent ef813fbf71
commit fcb3ca836f
1 changed files with 1 additions and 3 deletions

View File

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