chenqiyang
2022-05-11 7960485054f37eb60d63a98231686cef41302a8b
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 {