JLChen
2021-04-01 bf7f42bc3b63a0c2cec5a5adfb44feffab47a077
On+/ESVideoOn/ESVideoPhoneSDKDemo/On/ESOnIntercomViewController.m
@@ -61,6 +61,7 @@
    BOOL isBackGround;
    BOOL iSVideoNotDetermined;
    BOOL iSAudioNotDetermined;
    BOOL isAnswer;//是否已经点击接听过了
    
    NSString * tipStr;
    NSString * okStr;
@@ -301,6 +302,17 @@
//挂断按钮事件
-(void)hangUpAction{
    //1.回调事件
    if(self.mESCallDelegate != NULL){
        if(isAnswer){
            //如果之前已经接听了,回调是挂断
            [self.mESCallDelegate onHangUpAction:_callTimeout];
        }else{
            //如果之前没接听了,回调是拒接
            [self.mESCallDelegate onRejectCallAction];
        }
    }
    //2.页面关闭
    [self backAction];
}
@@ -352,6 +364,11 @@
    //开始计时
    _callTimeout = 0;
    [self startCountdown];
    isAnswer = YES;
    if(self.mESCallDelegate != NULL){
        [self.mESCallDelegate onAnswerAction];
    }
    
}
@@ -488,8 +505,10 @@
    _openDoorTimeout = 0;
    [self startOpenDoorCountdown];
    [self showUIAlertView:unlockSuccessfullyStr];
    // 开锁成功回调
    if(self.mESCallDelegate != NULL){
        [self.mESCallDelegate onUnlockAction];
    }
}
-(void)setUnlock:(BOOL)ISEnable{
@@ -1110,6 +1129,10 @@
    NSString *message = nil;
    if (!error) {
        message = saveToTheAlbumsStr;
        // 截图成功回调
        if(self.mESCallDelegate != NULL){
            [self.mESCallDelegate onScreenshotSuccessfulAction:image];
        }
    }
    else
    {