| | |
| | | // [NSNotificationCenter.defaultCenter remo]; |
| | | } |
| | | |
| | | -(void)login:(NSString*)username password:(NSString*)pwd domain:(NSString*) domain{ |
| | | [HDLLinphoneManager.instance login:username password:pwd domain:domain]; |
| | | //-(void)login:(NSString*)username password:(NSString*)pwd domain:(NSString*) domain{ |
| | | // [HDLLinphoneManager.instance login:username password:pwd domain:domain]; |
| | | //} |
| | | |
| | | -(void)login:(NSString*)username password:(NSString*)pwd domain:(NSString*) domain connectType:(NSString*)connectType{ |
| | | [HDLLinphoneManager.instance login:username password:pwd domain:domain connectType:connectType]; |
| | | } |
| | | |
| | | - (void)registrationUpdate:(NSNotification *)notif { |
| | |
| | | vc.modalPresentationStyle = UIModalPresentationFullScreen; |
| | | vc.userName=username; |
| | | vc.titleName=title; |
| | | [HDLLinphoneManager instance].deviceType=HDLLPType_Default; |
| | | [HDLLinphoneManager instance].isResettingVideoEnable=NO; |
| | | // self.CallVC=vc; |
| | | [[HDLLinPhoneCommon topMostController] presentViewController:vc animated:YES completion:^{ |
| | | |
| | | }]; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 鍛煎彨锛堣嚜鐮斿彲瑙嗗璁诧級 |
| | | * |
| | | * @param username 鐢ㄦ埛璐﹀彿 |
| | | * @param title 椤甸潰鏍囬 |
| | | */ |
| | | -(void)callHDLSRWithUserName:(NSString*)username title:(NSString *)title{ |
| | | HDLLPOnMonitorViewController *vc=[[HDLLPOnMonitorViewController alloc]init]; |
| | | // vc.CallId=callId; |
| | | // vc.hasVideo=YES; |
| | | vc.hdlLinphoneCallDelegate=self.hdlLinphoneCallDelegate; |
| | | vc.modalPresentationStyle = UIModalPresentationFullScreen; |
| | | vc.userName=username; |
| | | vc.titleName=title; |
| | | [HDLLinphoneManager instance].deviceType=HDLLPType_HDLSR; |
| | | [HDLLinphoneManager instance].isResettingVideoEnable=NO; |
| | | // self.CallVC=vc; |
| | | [[HDLLinPhoneCommon topMostController] presentViewController:vc animated:YES completion:^{ |
| | | |
| | | }]; |
| | | } |
| | | |
| | | /** |
| | | * 璺宠浆鍛煎彨椤甸潰 |
| | | * |
| | |
| | | [self toLinphoneIntercomVC:titleName deviceType:HDLLPType_HDLSR userName:username]; |
| | | } |
| | | |
| | | -(void)hideIntercomeVC{ |
| | | if ([[HDLLinPhoneCommon topMostController] isKindOfClass:[HDLLinphoneIntercomVC class]]) { |
| | | [[HDLLinPhoneCommon topMostController] dismissViewControllerAnimated:YES completion:^{ |
| | | |
| | | }]; |
| | | } |
| | | } |
| | | |
| | | -(void)toLinphoneIntercomVC:(NSString*)titleName deviceType:(HDLLPType)deviceType userName:(NSString *)userName{ |
| | | HDLLinphoneIntercomVC *vc=[[HDLLinphoneIntercomVC alloc]init]; |
| | | // vc.CallId=callId; |
| | |
| | | vc.deviceType=deviceType; |
| | | vc.userName=userName; |
| | | vc.modalPresentationStyle = UIModalPresentationFullScreen; |
| | | |
| | | [HDLLinphoneManager instance].deviceType=deviceType; |
| | | [HDLLinphoneManager instance].isResettingVideoEnable=NO; |
| | | // self.presentingIntercomVC=vc; |
| | | [[HDLLinPhoneCommon topMostController] presentViewController:vc animated:YES completion:^{ |
| | | |