From bf7f42bc3b63a0c2cec5a5adfb44feffab47a077 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 01 四月 2021 15:08:55 +0800
Subject: [PATCH] 2021-04-01 1.更新
---
On+/ESVideoOn/ESVideoPhoneSDKDemo/On/ESOnIntercomViewController.m | 27 +++++++++++++++++++++++++--
1 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/On+/ESVideoOn/ESVideoPhoneSDKDemo/On/ESOnIntercomViewController.m b/On+/ESVideoOn/ESVideoPhoneSDKDemo/On/ESOnIntercomViewController.m
index 8286472..1e59fe4 100644
--- a/On+/ESVideoOn/ESVideoPhoneSDKDemo/On/ESOnIntercomViewController.m
+++ b/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
{
--
Gitblit v1.8.0