| | |
| | | [self initCentetView]; |
| | | [self initData]; |
| | | [self initESVideo]; |
| | | //开始反呼 |
| | | //开始震动 |
| | | [self StartReverseCall]; |
| | | [self ShowCalltimeBtn:callingStr]; |
| | | //注册开锁成功监听 |
| | |
| | | [_screenshotImgBtn setImage:[UIImage imageNamed:@"ic_esvideo_on_takephoto_unselect"] forState:UIControlStateNormal]; |
| | | |
| | | //截图 |
| | | [HDLLinphoneManager.instance snapShotWithView:self.videoView]; |
| | | |
| | | } |
| | | |
| | |
| | | // [[HDLCallManager instance] acceptCallByCallID:self.CallId hasVideo:self.hasVideo]; |
| | | [[HDLLinphoneManager instance] acceptCall]; |
| | | /// 开启对讲 |
| | | [self startTalk]; |
| | | // [self startTalk]; |
| | | |
| | | _answerImgBtn.hidden = YES; |
| | | _answerTextBtn.hidden = YES; |
| | |
| | | /** 开启倒计时 */ |
| | | - (void)startOpenDoorCountdown { |
| | | |
| | | if (_openDoorTimeout > 20) { |
| | | if (_openDoorTimeout > 10) { |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | dispatch_source_set_event_handler(_openDoorTimer, ^{ |
| | | WEAKSELF_AT |
| | | if(weakSelf_AT.openDoorTimeout >= 20 ){// 计时结束 |
| | | if(weakSelf_AT.openDoorTimeout >= 10 ){// 计时结束 |
| | | // 关闭定时器 |
| | | dispatch_source_cancel(weakSelf_AT.openDoorTimer); |
| | | |