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:
parent
ef813fbf71
commit
fcb3ca836f
|
@ -410,9 +410,7 @@ const VideoLayout = {
|
||||||
|
|
||||||
// Enable the currently set dominant speaker.
|
// Enable the currently set dominant speaker.
|
||||||
if (currentDominantSpeaker) {
|
if (currentDominantSpeaker) {
|
||||||
if (smallVideo && smallVideo.hasVideo()) {
|
this.updateLargeVideo(currentDominantSpeaker);
|
||||||
this.updateLargeVideo(currentDominantSpeaker);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// if there is no currentDominantSpeaker, it can also be
|
// if there is no currentDominantSpeaker, it can also be
|
||||||
// that local participant is the dominant speaker
|
// that local participant is the dominant speaker
|
||||||
|
|
Loading…
Reference in New Issue