forked from mirrors/linphone-iphone
Fallback to AS if MaxPart > 6 only if Grid is active
This commit is contained in:
parent
67e20f3175
commit
7d9c923a79
1 changed files with 2 additions and 2 deletions
|
|
@ -64,8 +64,8 @@ class ConferenceViewModel {
|
|||
Log.i("[Conference] \(conference) Participant \(participant) added")
|
||||
self.updateParticipantsList(conference)
|
||||
let count = self.conferenceParticipantDevices.value!.count
|
||||
if (count > self.maxParticipantsForMosaicLayout) {
|
||||
Log.w("[Conference] \(conference) More than \(self.maxParticipantsForMosaicLayout) participants \(count), forcing active speaker layout")
|
||||
if (count > self.maxParticipantsForMosaicLayout && conference.currentParams?.videoEnabled == true && conference.call?.currentParams?.conferenceVideoLayout == .Grid) {
|
||||
Log.w("[Conference] \(conference) More than \(self.maxParticipantsForMosaicLayout) participants \(count), forcing active speaker layout from Grid")
|
||||
self.conferenceDisplayMode.value = .ActiveSpeaker
|
||||
self.changeLayout(layout: .ActiveSpeaker)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue