mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Handle video/no video updates from Active Speaker
This commit is contained in:
parent
468706fb0e
commit
d4e5c1fed8
2 changed files with 5 additions and 2 deletions
|
|
@ -142,6 +142,7 @@ class ControlsViewModel {
|
|||
if let currentCall = core.currentCall {
|
||||
if (currentCall.conference != nil) {
|
||||
if let params = try?core.createCallParams(call: currentCall) {
|
||||
isVideoUpdateInProgress.value = true
|
||||
params.videoDirection = params.videoDirection == MediaDirection.RecvOnly ? MediaDirection.SendRecv : MediaDirection.RecvOnly
|
||||
try?currentCall.update(params: params)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,8 +125,10 @@ class VoipConferenceActiveSpeakerView: UIView, UICollectionViewDataSource, UICol
|
|||
}
|
||||
model.speakingParticipant.readCurrentAndObserve { speakingParticipant in
|
||||
if (model.activeSpeakerConferenceParticipantDevices.value!.count > 1) {
|
||||
self.fillActiveSpeakerSpace(data: speakingParticipant,video: speakingParticipant?.videoEnabled.value == true)
|
||||
self.muted.isHidden = true
|
||||
speakingParticipant?.videoEnabled.readCurrentAndObserve { video in
|
||||
self.fillActiveSpeakerSpace(data: speakingParticipant,video: video == true)
|
||||
self.muted.isHidden = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue