forked from mirrors/linphone-iphone
Update video button state in conference
This commit is contained in:
parent
cc472ef0f9
commit
c844b36a47
1 changed files with 3 additions and 3 deletions
|
|
@ -208,10 +208,10 @@ class ControlsViewModel {
|
|||
}
|
||||
|
||||
func isVideoCallOrConferenceActive() -> Bool {
|
||||
if let conference = core.conference, conference.isIn {
|
||||
return conference.currentParams?.videoEnabled == true
|
||||
if let currentCall = core.currentCall, let params = currentCall.params {
|
||||
return params.videoEnabled && (currentCall.conference == nil || params.videoDirection == MediaDirection.SendRecv)
|
||||
} else {
|
||||
return core.currentCall?.currentParams?.videoEnabled == true
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue