From 7960485054f37eb60d63a98231686cef41302a8b Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期三, 11 五月 2022 09:13:56 +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