| | |
| | | UIViewController *topVC=[HDLLinPhoneCommon topMostController]; |
| | | if ([topVC isKindOfClass:[HDLLPOnMonitorViewController class]]) { |
| | | [topVC dismissViewControllerAnimated:NO completion:^{ |
| | | [weakSelf toLinphoneIntercomVC:titleName]; |
| | | [weakSelf toLinphoneIntercomVC:titleName deviceType:HDLLPType_Default userName:@""]; |
| | | }]; |
| | | }else if ([topVC isKindOfClass:[HDLLinphoneIntercomVC class]]) { |
| | | [topVC dismissViewControllerAnimated:NO completion:^{ |
| | | [weakSelf toLinphoneIntercomVC:titleName]; |
| | | [weakSelf toLinphoneIntercomVC:titleName deviceType:HDLLPType_Default userName:@""]; |
| | | }]; |
| | | } |
| | | }]; |
| | |
| | | return; |
| | | } |
| | | |
| | | [self toLinphoneIntercomVC:titleName]; |
| | | [self toLinphoneIntercomVC:titleName deviceType:HDLLPType_Default userName:@""]; |
| | | |
| | | // if (self.presentingIntercomVC) { |
| | | // __weak typeof(self) weakSelf = self; |
| | |
| | | // }]; |
| | | } |
| | | |
| | | -(void)toLinphoneIntercomVC:(NSString*)titleName{ |
| | | /** |
| | | * 跳转èªç å¼å«é¡µé¢ |
| | | * |
| | | * @param titleName æ é¢ |
| | | */ |
| | | -(void)gotoHDLSRLinphoneIntercomVC:(NSString*)titleName userName:(NSString*)username{ |
| | | if ([HDLLinPhoneCommon rootPresentVCContent:[HDLLinphoneIntercomVC class]]||[HDLLinPhoneCommon rootPresentVCContent:[HDLLPOnMonitorViewController class]]) { |
| | | if ([[HDLLinPhoneCommon topMostController] isKindOfClass:[UIAlertController class]]) { |
| | | NSLog(@"é¡¶å±è§å¾æ¯è§é¢éè¯é¡µ"); |
| | | __weak typeof(self) weakSelf = self; |
| | | |
| | | [[HDLLinPhoneCommon topMostController] dismissViewControllerAnimated:NO completion:^{ |
| | | UIViewController *topVC=[HDLLinPhoneCommon topMostController]; |
| | | if ([topVC isKindOfClass:[HDLLPOnMonitorViewController class]]) { |
| | | [topVC dismissViewControllerAnimated:NO completion:^{ |
| | | [weakSelf toLinphoneIntercomVC:titleName deviceType:HDLLPType_HDLSR userName:username]; |
| | | }]; |
| | | }else if ([topVC isKindOfClass:[HDLLinphoneIntercomVC class]]) { |
| | | [topVC dismissViewControllerAnimated:NO completion:^{ |
| | | [weakSelf toLinphoneIntercomVC:titleName deviceType:HDLLPType_HDLSR userName:username]; |
| | | }]; |
| | | } |
| | | }]; |
| | | } |
| | | return; |
| | | } |
| | | |
| | | [self toLinphoneIntercomVC:titleName deviceType:HDLLPType_HDLSR userName:username]; |
| | | } |
| | | |
| | | -(void)toLinphoneIntercomVC:(NSString*)titleName deviceType:(HDLLPType)deviceType userName:(NSString *)userName{ |
| | | HDLLinphoneIntercomVC *vc=[[HDLLinphoneIntercomVC alloc]init]; |
| | | // vc.CallId=callId; |
| | | vc.hasVideo=YES; |
| | |
| | | if (titleName) { |
| | | vc.titleName=titleName; |
| | | } |
| | | vc.deviceType=deviceType; |
| | | vc.userName=userName; |
| | | vc.modalPresentationStyle = UIModalPresentationFullScreen; |
| | | // self.presentingIntercomVC=vc; |
| | | [[HDLLinPhoneCommon topMostController] presentViewController:vc animated:YES completion:^{ |