fix(large-video): ensure switch to local video when all others leave (#1607)
* fix(large-video): ensure switch to local video when all others leave This handles the case where User A and B are in a call and B has no audio or video. Then B leaves. User A would see User B left on large video. Instead, User A should see self view on large. * squash: always update large video if it is empty * squash: add largeVideo check for filmstrip only mode
This commit is contained in:
parent
a59e691ba8
commit
d1ea29beeb
|
@ -263,7 +263,9 @@ var VideoLayout = {
|
|||
* otherwise elects new video, in this order.
|
||||
*/
|
||||
updateAfterThumbRemoved (id) {
|
||||
if (!this.isCurrentlyOnLarge(id)) {
|
||||
// Always trigger an update if large video is empty.
|
||||
if (!largeVideo
|
||||
|| (this.getLargeVideoID() && !this.isCurrentlyOnLarge(id))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue