| | |
| | | { |
| | | //乐橙可视对讲 |
| | | //1.初始化LCOpenSDK_Api |
| | | LCApiKit.SharedInstance().IsChinaMainland = OnAppConfig.Instance.RequestHttpsHost.Contains("china");//如果域名包含china,则SDK 使用乐橙的中国大陆(正式)域名 |
| | | LCApiKit.SharedInstance().InitSDKOpenApi(mESVideoInfo.Lc_AccessToken); |
| | | LCApiKit.SharedInstance().CurrentDevicePlayToken = mESVideoInfo.Lc_PlayToken; |
| | | LCApiKit.SharedInstance().CurrentDeviceId = mESVideoInfo.Lc_DeviceId; |
| | |
| | | //vc.MLCCallDelegate = new OnLCCallDelegate(this); |
| | | Shared.Application.currentVC.NavigationController.PushViewController(vc, true); |
| | | } |
| | | else |
| | | else if(interphoneType == InterphoneType.FLVI.ToString()) |
| | | { |
| | | |
| | | ESOnMonitorViewController vc = new ESOnMonitorViewController(); |
| | |
| | | //vc.RoomName = mESVideoInfo.RoomName; |
| | | //vc.MESCallDelegate = new OnESCallDelegate(this); |
| | | Shared.Application.currentVC.NavigationController.PushViewController(vc, true); |
| | | }else if (interphoneType == InterphoneType.HDL.ToString()) |
| | | { |
| | | //HDLLinphone 狄耐克 |
| | | HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo); |
| | | } |
| | | else |
| | | { |
| | | HDLUtils.WriteLine("未对接,不支持监视"); |
| | | } |
| | | #else |
| | | Intent intent = null; |
| | |
| | | //=========乐橙========== |
| | | intent.PutExtra("AccessToken", mESVideoInfo.Lc_AccessToken); |
| | | intent.PutExtra("DeviceId", mESVideoInfo.Lc_DeviceId); |
| | | intent.PutExtra("Location", OnAppConfig.Instance.RequestHttpsHost.Contains("China") ? 0 : 1);//如果域名包含china,则是国内账号); |
| | | intent.PutExtra("Location", OnAppConfig.Instance.RequestHttpsHost.Contains("china") ? 0 : 1);//如果域名包含china,则是国内账号); |
| | | intent.PutExtra("PlayToken", mESVideoInfo.Lc_PlayToken); |
| | | intent.PutExtra("Psk", mESVideoInfo.Lc_Psk); |
| | | |
| | |
| | | //=========乐橙========== |
| | | intent.PutExtra("AccessToken", mESVideoInfo.Lc_AccessToken); |
| | | intent.PutExtra("DeviceId", mESVideoInfo.Lc_DeviceId); |
| | | intent.PutExtra("Location", OnAppConfig.Instance.RequestHttpsHost.Contains("China") ? 0 : 1);//如果域名包含china,则是国内账号); |
| | | intent.PutExtra("Location", OnAppConfig.Instance.RequestHttpsHost.Contains("china") ? 0 : 1);//如果域名包含china,则是国内账号); |
| | | intent.PutExtra("PlayToken", mESVideoInfo.Lc_PlayToken); |
| | | intent.PutExtra("Psk", mESVideoInfo.Lc_Psk); |
| | | |
| | |
| | | { |
| | | //乐橙可视对讲 |
| | | //1.初始化LCOpenSDK_Api |
| | | LCApiKit.SharedInstance().IsChinaMainland = OnAppConfig.Instance.RequestHttpsHost.Contains("china");//如果域名包含china,则SDK 使用乐橙的中国大陆(正式)域名 |
| | | LCApiKit.SharedInstance().InitSDKOpenApi(mESVideoInfo.Lc_AccessToken); |
| | | //2021-05-18 目前推送的PlayToken;有问题会导致SDK崩溃,暂时不传 |
| | | //LCApiKit.SharedInstance().CurrentDevicePlayToken = mESVideoInfo.Lc_PlayToken; |
| | |
| | | //=========乐橙========== |
| | | intent.PutExtra("AccessToken", mESVideoInfo.Lc_AccessToken); |
| | | intent.PutExtra("DeviceId", mESVideoInfo.Lc_DeviceId); |
| | | intent.PutExtra("Location", OnAppConfig.Instance.RequestHttpsHost.Contains("China") ? 0 : 1);//如果域名包含china,则是国内账号); |
| | | intent.PutExtra("Location", OnAppConfig.Instance.RequestHttpsHost.Contains("china") ? 0 : 1);//如果域名包含china,则是国内账号); |
| | | intent.PutExtra("PlayToken", mESVideoInfo.Lc_PlayToken); |
| | | intent.PutExtra("Psk", mESVideoInfo.Lc_Psk); |
| | | |
| | |
| | | //=========乐橙========== |
| | | intent.PutExtra("AccessToken", mESVideoInfo.Lc_AccessToken); |
| | | intent.PutExtra("DeviceId", mESVideoInfo.Lc_DeviceId); |
| | | intent.PutExtra("Location", OnAppConfig.Instance.RequestHttpsHost.Contains("China") ? 0 : 1);//如果域名包含china,则是国内账号); |
| | | intent.PutExtra("Location", OnAppConfig.Instance.RequestHttpsHost.Contains("china") ? 0 : 1);//如果域名包含china,则是国内账号); |
| | | intent.PutExtra("PlayToken", mESVideoInfo.Lc_PlayToken); |
| | | intent.PutExtra("Psk", mESVideoInfo.Lc_Psk); |
| | | |