464027401@qq.com
2021-09-27 b469805b2d0c9b23ca020cf9356ff137205f856c
HDLLinPhoneSDK£¨OC£©/HDLLinPhoneSDK/HDLLPOnMonitorViewController.m
@@ -10,7 +10,7 @@
#import <Photos/Photos.h>
#import "HDLLinphoneUtlis.h"
#import "HDLLinphoneManager.h"
#import "HDLLinPhoneCommon.h"
//#import "HDLLinPhoneSDK-Swift.h"
//#import "LCUtlis.h"
//#import "LCApiKit.h"
@@ -37,7 +37,7 @@
@property (nonatomic,strong) dispatch_source_t openDoorTimer;
@property (nonatomic, assign) int openDoorTimeout;
@property (nonatomic, assign)  BOOL isHangUpByRemote;//是否对方远程挂断
/// æ’­æ”¾å™¨
//@property (nonatomic, strong) LCOpenSDK_PlayWindow *playWindow;
@@ -101,6 +101,7 @@
    int state = [[notif.userInfo objectForKey:@"state"] intValue];
    if ((state == LinphoneCallEnd || state == LinphoneCallError)){//挂断了
        NSLog(@"挂断或出错了");
        self.isHangUpByRemote=YES;
        [self showUIAlertViewWithBack:@"监视结束"];
        
    }
@@ -450,8 +451,9 @@
    [alertController addAction:[UIAlertAction actionWithTitle:okStr style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        [self backAction];
    }]];
    [self presentViewController:alertController animated:YES completion:nil];
//    [[HDLLinPhoneCommon rootController] presentViewController:alertController animated:YES completion:nil];
}
@@ -476,7 +478,9 @@
    [super viewWillDisappear:animated];
    
    //1.暂停SDK相关播放
    if (!self.isHangUpByRemote) {
    [self stopPlay];
    }
    //2.Delegate释放
//    self.mLCCallDelegate = nil;
    //3.定时器释放