forked from mirrors/linphone-iphone
Fix outgoing video call
This commit is contained in:
parent
ad701fb952
commit
fad30689b4
2 changed files with 2 additions and 2 deletions
|
|
@ -329,7 +329,7 @@ extension ProviderDelegate: CXProviderDelegate {
|
|||
CoreContext.shared.doOnCoreQueue { core in
|
||||
do {
|
||||
core.configureAudioSession()
|
||||
try TelecomManager.shared.doCall(core: core, addr: addr!, isSas: callInfo?.sasEnabled ?? false, isVideo: ((callInfo?.videoEnabled ?? false) && core.videoPreviewEnabled), isConference: callInfo?.isConference ?? false)
|
||||
try TelecomManager.shared.doCall(core: core, addr: addr!, isSas: callInfo?.sasEnabled ?? false, isVideo: callInfo?.videoEnabled ?? false, isConference: callInfo?.isConference ?? false)
|
||||
action.fulfill()
|
||||
} catch {
|
||||
Log.info("CallKit: Call started failed because \(error)")
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ class TelecomManager: ObservableObject {
|
|||
|
||||
if isConference {
|
||||
lcallParams.videoEnabled = true
|
||||
lcallParams.videoDirection = isVideo ? MediaDirection.SendRecv : MediaDirection.RecvOnly
|
||||
lcallParams.videoDirection = isVideo && core.videoPreviewEnabled ? MediaDirection.SendRecv : MediaDirection.RecvOnly
|
||||
/* if (ConferenceWaitingRoomViewModel.sharedModel.joinLayout.value! != .AudioOnly) {
|
||||
lcallParams.videoEnabled = true
|
||||
lcallParams.videoDirection = ConferenceWaitingRoomViewModel.sharedModel.isVideoEnabled.value == true ? .SendRecv : .RecvOnly
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue