From 6a63c4281fbe7e17103115320cd276397d733081 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期五, 27 八月 2021 09:28:10 +0800
Subject: [PATCH] 替换最新的.a
---
HDLLinPhoneSDK/HDLLinPhoneSDK/HDLProviderDelegate.swift | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLProviderDelegate.swift b/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLProviderDelegate.swift
index 2818adf..e51c4e9 100644
--- a/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLProviderDelegate.swift
+++ b/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLProviderDelegate.swift
@@ -75,13 +75,14 @@
let callInfo = callInfos[uuid]
let callId = callInfo?.callId
-
+// HDLCallManager.instance().lc?.activateAudioSession(actived: true)
+
provider.reportNewIncomingCall(with: uuid, update: update) { error in
if error == nil {
-
+
HDLCallManager.instance().providerDelegate.endCallNotExist(uuid: uuid, timeout: .now() + 20)
} else {
-
+
if (call == nil) {
callInfo?.declined = true
self.callInfos.updateValue(callInfo!, forKey: uuid)
@@ -159,11 +160,12 @@
if (call == nil || call?.state != Call.State.IncomingReceived) {
// The application is not yet registered or the call is not yet received, mark the call as accepted. The audio session must be configured here.
HDLCallManager.configAudioSession(audioSession: AVAudioSession.sharedInstance())
+ print("杩涙潵杩欓噷浜�")
callInfo?.accepted = true
callInfos.updateValue(callInfo!, forKey: uuid)
HDLCallManager.instance().providerDelegate.endCallNotExist(uuid: uuid, timeout: .now() + 10)
} else {
-// HDLCallManager.instance().acceptCall(call: call!, hasVideo: call!.params?.videoEnabled ?? false)
+ HDLCallManager.instance().acceptCall(call: call!, hasVideo: call!.params?.videoEnabled ?? false)
}
action.fulfill()
}
@@ -268,7 +270,7 @@
}
func provider(_ provider: CXProvider, didActivate audioSession: AVAudioSession) {
-
+ print("didActivate");
HDLCallManager.instance().lc?.activateAudioSession(actived: true)
}
--
Gitblit v1.8.0