| | |
| | | #import <Photos/Photos.h> |
| | | #import "HDLLinphoneUtlis.h" |
| | | #import "HDLLinphoneManager.h" |
| | | |
| | | #import "HDLLinPhoneCommon.h" |
| | | //#import "HDLLinPhoneSDK-Swift.h" |
| | | //#import "LCUtlis.h" |
| | | //#import "LCApiKit.h" |
| | |
| | | @property (nonatomic,strong) dispatch_source_t openDoorTimer; |
| | | @property (nonatomic, assign) int openDoorTimeout; |
| | | |
| | | |
| | | @property (nonatomic, assign) BOOL isHangUpByRemote;//æ¯å¦å¯¹æ¹è¿ç¨ææ |
| | | /// ææ¾å¨ |
| | | //@property (nonatomic, strong) LCOpenSDK_PlayWindow *playWindow; |
| | | |
| | |
| | | int state = [[notif.userInfo objectForKey:@"state"] intValue]; |
| | | if ((state == LinphoneCallEnd || state == LinphoneCallError)){//ææäº |
| | | NSLog(@"æææåºéäº"); |
| | | self.isHangUpByRemote=YES; |
| | | [self showUIAlertViewWithBack:@"çè§ç»æ"]; |
| | | |
| | | } |
| | |
| | | [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]; |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | - (void)viewWillAppear:(BOOL)animated { |
| | | [super viewWillAppear:animated]; |
| | | |
| | | |
| | | |
| | | } |
| | | -(void)viewWillDisappear:(BOOL)animated{ |
| | | [super viewWillDisappear:animated]; |
| | | |
| | | //1.æåSDKç¸å
³ææ¾ |
| | | [self stopPlay]; |
| | | if (!self.isHangUpByRemote) { |
| | | [self stopPlay]; |
| | | } |
| | | //2.Delegateéæ¾ |
| | | // self.mLCCallDelegate = nil; |
| | | //3.宿¶å¨éæ¾ |