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/HDLCoreManagerDelegate.swift | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLCoreManagerDelegate.swift b/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLCoreManagerDelegate.swift
index 4c3de72..12da730 100644
--- a/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLCoreManagerDelegate.swift
+++ b/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLCoreManagerDelegate.swift
@@ -31,7 +31,7 @@
HDLCallManager.setAppData(sCall: call, appData: appData)
}
HDLLinPhoneSDK.instance().isIncomingReceivedCallState=false
-
+ print("cstate: \(cstate)")
switch cstate {
case .IncomingReceived:
print("鎺ユ敹鍒伴�氱煡")
@@ -53,16 +53,18 @@
}
} else {
let state: UIApplication.State = UIApplication.shared.applicationState
- HDLCallManager.instance().displayIncomingCall(call: call, handle: address, hasVideo: video, callId: callId!)
- if state == .background{
-// HDLCallManager.instance().displayIncomingCall(call: call, handle: address, hasVideo: video, callId: callId!)
- }else{
-
+ HDLCallManager.instance().displayIncomingCall(call: call, handle: address, hasVideo: true, callId: callId!)
+ print("鎺ユ敹鍒伴�氱煡2")
+// if state == .background{
+// print("鎺ユ敹鍒伴�氱煡3")
+//// HDLCallManager.instance().displayIncomingCall(call: call, handle: address, hasVideo: video, callId: callId!)
+// }else{
// HDLCallManager.instance().acceptCall(call: call, hasVideo: call.params?.videoEnabled ?? false)
- let dict: Dictionary<String, Any> = ["state":10,"cfg":"","message":"","callID":call.callLog?.callId ?? "","hasVideo":call.params?.videoEnabled ?? false]
+ print("鎺ユ敹鍒伴�氱煡4")
+ let dict: Dictionary<String, Any> = ["state":10,"cfg":"","message":"","callID":call.callLog?.callId ?? "","hasVideo":call.params?.videoEnabled ?? false,"userName":call.remoteAddress?.username ?? ""]
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "LinphoneRegistrationUpdate"), object: nil, userInfo: dict)
HDLLinPhoneSDK.instance().isIncomingReceivedCallState=true
- }
+// }
}
}
break
@@ -159,11 +161,17 @@
HDLCallManager.instance().requestTransaction(transaction, action: "endCall")
}
}
+ let dict: Dictionary<String, Any> = ["state":11,"cfg":"","message":"","callID":call.callLog?.callId ?? "","hasVideo":call.params?.videoEnabled ?? false,"userName":call.remoteAddress?.username ?? ""]
+ NotificationCenter.default.post(name: NSNotification.Name(rawValue: "LinphoneRegistrationUpdate"), object: nil, userInfo: dict)
break
case .Released:
call.userData = nil
+ print("release 浜�")
+ let dict: Dictionary<String, Any> = ["state":12,"cfg":"","message":"","callID":call.callLog?.callId ?? "","hasVideo":call.params?.videoEnabled ?? false,"userName":call.remoteAddress?.username ?? ""]
+ NotificationCenter.default.post(name: NSNotification.Name(rawValue: "LinphoneRegistrationUpdate"), object: nil, userInfo: dict)
break
case .Referred:
+ print("Referred 浜�")
HDLCallManager.instance().referedFromCall = call.callLog?.callId
break
default:
--
Gitblit v1.8.0