JLChen
2021-05-18 a869383e163a18cdedcf587383c1eca043129754
iOS/Xamarin/LCSDKOnXamarin/LCSDKOnXamarin/LCOnIntercomViewController.m
@@ -53,11 +53,8 @@
@implementation LCOnIntercomViewController{
    
    BOOL isAccessAudio;
    BOOL isAccessVideo;
    BOOL isBackGround;
    BOOL iSVideoNotDetermined;
    BOOL iSAudioNotDetermined;
    BOOL isAnswer;//是否已经点击接听过了
    
    NSString * tipStr;
@@ -702,7 +699,7 @@
- (void)onPlayerResult:(NSString*)code Type:(NSInteger)type Index:(NSInteger)index {
    // play
    WEAKSELF_AT(self);
    NSLog(@"LIVE_PLAY-CODE:%@,TYPE:%ld", code, type);
    NSLog(@"LIVE_PLAY-CODE:%@,TYPE:%ld", code, (long)type);
    //是否已经弹窗过
    if(isShowErrorAlert) return;;
    
@@ -859,24 +856,11 @@
    [super viewWillDisappear:animated];
    [self stopPlaySystemSound];
    //防止用户不按挂断,或者不等收到对方的挂断,点击返回按钮。
    //1.暂停SDK相关播放
    [self stopPlay];
    //    if(_es){
    //        [_es onHangup];
    //        [_es onStopCapture];
    //        [_es stopTalk];
    //
    //        _es.delegate = nil;
    //        ESVideo.shareInstance.snapImageCallback = nil;
    //
    //
    //    }
    //    [_es freeSubClass];
}
-(void)dealloc{
    [[NSNotificationCenter defaultCenter] removeObserver:self];
    //    [_es freeSubClass];
    //2.Delegate释放
    self.mLCCallDelegate = nil;
    //3.定时器释放
    if(_openDoorTimer){
        dispatch_source_cancel(_openDoorTimer);
        _openDoorTimer = nil; // OK
@@ -886,9 +870,13 @@
        _countdownTimer = nil; // OK
        
    }
    NSLog(@"==============dealloc");
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}
-(void)dealloc{
    NSLog(@"==============dealloc  1");
}
//#pragma mark ESVideoPhoneDelegate