| | |
| | | if (interphoneType == InterphoneType.IMOUVISIAL.ToString()) |
| | | { |
| | | //乐橙可视对讲 |
| | | //1.初始化LCOpenSDK_Api |
| | | //1.初始化LCOpenSDK_Api(Shared.IOS.LCVideoOnSDK) |
| | | LCApiKit.SharedInstance().IsChinaMainland = GetIsChinaMainland(); |
| | | LCApiKit.SharedInstance().InitSDKOpenApi(mESVideoInfo.Lc_AccessToken); |
| | | LCApiKit.SharedInstance().CurrentDevicePlayToken = mESVideoInfo.Lc_PlayToken; |
| | |
| | | } |
| | | else if(interphoneType == InterphoneType.FLVI.ToString()) |
| | | { |
| | | |
| | | //Shared.IOS.ESVideoOnSDK |
| | | ESOnMonitorViewController vc = new ESOnMonitorViewController(); |
| | | vc.MESVideoID = mESVideoInfo.ESVideoUUID; |
| | | vc.MESRoomID = roomID; |
| | | vc.DeviceName = mESVideoInfo.DeviceName; |
| | | //vc.RoomName = mESVideoInfo.RoomName; |
| | | //vc.MESCallDelegate = new OnESCallDelegate(this); |
| | | Shared.Application.currentVC.NavigationController.PushViewController(vc, true); |
| | | }else if (interphoneType == InterphoneType.HDL.ToString()) |
| | | } |
| | | else if (interphoneType == InterphoneType.HDL.ToString()) |
| | | { |
| | | //HDLLinphone 狄耐克 |
| | | HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo, interphoneType); |
| | | ////全视通 |
| | | //NSDictionary deviceInfo = new NSDictionary("deviceCode","3-1-11-2", "deviceName", mESVideoInfo.DeviceName); |
| | | //Shared.IOS.HDLFVSDK.Video.Monitor(deviceInfo); |
| | | } else if (interphoneType == InterphoneType.FREEVIEW.ToString()) |
| | | { |
| | | //全视通监视 |
| | |
| | | if (interphoneType == InterphoneType.IMOUVISIAL.ToString()) |
| | | { |
| | | //乐橙可视对讲 |
| | | //1.初始化LCOpenSDK_Api |
| | | //1.初始化LCOpenSDK_Api(Shared.IOS.LCVideoOnSDK) |
| | | LCApiKit.SharedInstance().IsChinaMainland = GetIsChinaMainland(); |
| | | LCApiKit.SharedInstance().InitSDKOpenApi(mESVideoInfo.Lc_AccessToken); |
| | | //2021-05-18 目前推送的PlayToken;有问题会导致SDK崩溃,暂时不传 |
| | |
| | | } |
| | | else if (interphoneType == InterphoneType.FLVI.ToString()) |
| | | { |
| | | |
| | | //Shared.IOS.ESVideoOnSDK |
| | | ESOnIntercomViewController vc = new ESOnIntercomViewController(); |
| | | vc.MESVideoID = mESVideoInfo.ESVideoUUID; |
| | | vc.MESRoomID = roomID; |
| | |
| | | mOnESCallDelegate = new OnESCallDelegate(this); |
| | | vc.MESCallDelegate = mOnESCallDelegate; |
| | | Shared.Application.currentVC.NavigationController.PushViewController(vc, true); |
| | | }else{ |
| | | } |
| | | else{ |
| | | HDLUtils.WriteLine("未支持的可视对讲类型"); |
| | | |
| | | } |
| | |
| | | #if __IOS__ |
| | | #region OnESCallDelegate |
| | | /////// <summary> |
| | | /////// OnESCallDelegate 继承响应事件 |
| | | /////// OnESCallDelegate 继承响应事件(Shared.IOS.ESVideoOnSDK) |
| | | /////// </summary> |
| | | OnESCallDelegate mOnESCallDelegate; |
| | | |
| | |
| | | |
| | | #region OnLCCallDelegate |
| | | /////// <summary> |
| | | /////// OnLCCallDelegate 继承响应事件 |
| | | /////// OnLCCallDelegate 继承响应事件(Shared.IOS.LCVideoOnSDK) |
| | | /////// </summary> |
| | | OnLCCallDelegate mOnLCCallDelegate; |
| | | |
| | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #endif |
| | | |
| | | ///// <summary> |