From 548b4e645a638faa462b97f6ae9e2c7a38df8154 Mon Sep 17 00:00:00 2001
From: 464027401@qq.com <464027401@qq.com>
Date: 星期二, 14 十二月 2021 13:45:01 +0800
Subject: [PATCH] 设置为随机端口
---
HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m b/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m
index f11f591..dd4878b 100644
--- a/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m
+++ b/HDLLinPhoneSDK/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m
@@ -85,9 +85,21 @@
if (self.titleName&&self.titleName.length!=0) {
self.titleUILabel.text=self.titleName;
}
+
+ [NSNotificationCenter.defaultCenter addObserver:self
+ selector:@selector(registrationUpdate:)
+ name:@"LinphoneRegistrationUpdate"
+ object:nil];
}
-
+- (void)registrationUpdate:(NSNotification *)notif {
+ int state = [[notif.userInfo objectForKey:@"state"] intValue];
+ if(state==11){//鎸傛柇浜�
+ NSLog(@"鎸傛柇鎴栧嚭閿欎簡");
+ [self showUIAlertViewWithBack:@"鐩戣缁撴潫"];
+
+ }
+}
-(void)initLlanguage{
NSString *languageName = [[[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"] objectAtIndex:0];
@@ -329,7 +341,7 @@
/** 寮�鍚�掕鏃� */
- (void)startOpenDoorCountdown {
- if (_openDoorTimeout > 20) {
+ if (_openDoorTimeout > 10) {
return;
}
@@ -344,7 +356,7 @@
dispatch_source_set_event_handler(_openDoorTimer, ^{
WEAKSELF_AT
- if(weakSelf_AT.openDoorTimeout >= 20 ){// 璁℃椂缁撴潫
+ if(weakSelf_AT.openDoorTimeout >= 10 ){// 璁℃椂缁撴潫
// 鍏抽棴瀹氭椂鍣�
dispatch_source_cancel(weakSelf_AT.openDoorTimer);
@@ -387,9 +399,8 @@
鏆傚仠鎾斁
*/
- (void)stopPlay {
-
[HDLLinphoneManager.instance endCall];
-
+
}
- (void)startPlay {
--
Gitblit v1.8.0