| | |
| | | public ESVideoInfo esVideoInfo; |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// 暂时没用 |
| | | /// </summary> |
| | | public void InitESVideoSDK() |
| | | { |
| | |
| | | /// <summary> |
| | | /// 监控页面 |
| | | /// </summary> |
| | | <<<<<<< HEAD |
| | | /// <param name="mESVideoInfo">丰林监视所需相关参数</param> |
| | | public void ShowESVideoMonitor(ESVideoInfo mESVideoInfo) |
| | | ======= |
| | | /// <param name="mESVideoInfo"></param> |
| | | public void ShowESVideoMonitor(ESVideoInfo mESVideoInfo, string interphoneType) |
| | | >>>>>>> origin/CJL-LC |
| | | { |
| | | this.esVideoInfo = mESVideoInfo; |
| | | int roomID = 0; |
| | | int.TryParse(mESVideoInfo.roomno, out roomID); |
| | | <<<<<<< HEAD |
| | | ESOnMonitorViewController vc = new ESOnMonitorViewController(); |
| | | vc.MESVideoID = mESVideoInfo.ESVideoUUID; |
| | | vc.MESRoomID =roomID; |
| | | vc.DeviceName = mESVideoInfo.DeviceName; |
| | | //vc.RoomName = mESVideoInfo.RoomName; |
| | | //vc.MESCallDelegate = new OnESCallDelegate(this); |
| | | mOnESCallDelegate = new OnESCallDelegate(this); |
| | | vc.MESCallDelegate = mOnESCallDelegate; |
| | | Shared.Application.currentVC.NavigationController.PushViewController(vc, true); |
| | | ======= |
| | | |
| | | #if __IOS__ |
| | | if (interphoneType == "IMOUVISIAL") |
| | |
| | | //vc.MESCallDelegate = new OnESCallDelegate(this); |
| | | Shared.Application.currentVC.NavigationController.PushViewController(vc, true); |
| | | } |
| | | >>>>>>> origin/CJL-LC |
| | | #else |
| | | Intent intent = null; |
| | | if (interphoneType == "IMOUVISIAL") |
| | |
| | | /// <summary> |
| | | /// 被呼叫页面 |
| | | /// </summary> |
| | | <<<<<<< HEAD |
| | | /// <param name="mESVideoInfo">丰林呼叫功能所需相关参数</param> |
| | | public void ShowESvideoVideoIntercom(ESVideoInfo mESVideoInfo) |
| | | ======= |
| | | /// <param name="mESVideoInfo"></param> |
| | | public void ShowESvideoVideoIntercom(ESVideoInfo mESVideoInfo, string interphoneType) |
| | | >>>>>>> origin/CJL-LC |
| | | { |
| | | this.esVideoInfo = mESVideoInfo; |
| | | int roomID = 0; |
| | |
| | | //乐橙可视对讲 |
| | | //1.初始化LCOpenSDK_Api |
| | | LCApiKit.SharedInstance().InitSDKOpenApi(mESVideoInfo.Lc_AccessToken); |
| | | LCApiKit.SharedInstance().CurrentDevicePlayToken = mESVideoInfo.Lc_PlayToken; |
| | | //2021-05-18 目前推送的PlayToken;有问题会导致SDK崩溃,暂时不传 |
| | | //LCApiKit.SharedInstance().CurrentDevicePlayToken = mESVideoInfo.Lc_PlayToken; |
| | | LCApiKit.SharedInstance().CurrentDeviceId = mESVideoInfo.Lc_DeviceId; |
| | | LCApiKit.SharedInstance().CurrentDeviceName = mESVideoInfo.DeviceName; |
| | | LCApiKit.SharedInstance().CurrentPsk = mESVideoInfo.Lc_DeviceId; |
| | |
| | | } |
| | | |
| | | #endregion |
| | | <<<<<<< HEAD |
| | | ======= |
| | | |
| | | #region 王赢新接听和开锁接口 |
| | | /// <summary> |
| | |
| | | { |
| | | Dictionary<string, object> dic = new Dictionary<string, object>(); |
| | | dic.Add("deviceId", esVideoInfo.Lc_DeviceId);//设备id |
| | | dic.Add("callId", esVideoInfo.callId); |
| | | var requestJson = HttpUtil.GetSignRequestJson(dic); |
| | | var revertObj = HttpUtil.RequestHttpsPostFroHome(NewAPI.API_POST_VideoDevice_OpenDoorbell, requestJson); |
| | | if (revertObj.Code == StateCode.SUCCESS) |
| | |
| | | |
| | | } |
| | | #endregion |
| | | >>>>>>> origin/CJL-LC |
| | | |
| | | #if __IOS__ |
| | | #region OnESCallDelegate |
| | |
| | | OnESCallDelegate mOnESCallDelegate; |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// iOS原生委托事件 |
| | | /// </summary> |
| | | public class OnESCallDelegate : ESCallDelegate |
| | | { |
| | | |
| | | /// <summary> |
| | | /// ESOnVideo |
| | | /// </summary> |
| | | [Weak] ESOnVideo _ESOnVideo; |
| | | |
| | | /// <summary> |
| | | /// 初始化 |
| | | /// </summary> |
| | | /// <param name="mESOnVideo">呼叫相关的参数</param> |
| | | public OnESCallDelegate(ESOnVideo mESOnVideo) |
| | | { |
| | | _ESOnVideo = mESOnVideo; |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | <<<<<<< HEAD |
| | | /// 丰林监视和呼叫功能所需相关参数 |
| | | ======= |
| | | /// 可视对讲参数对象(仅在最后一步跳转到activity时才调用,为了做兼容这里都数据有点乱,以后有时间再理顺思路优化) |
| | | >>>>>>> origin/CJL-LC |
| | | /// </summary> |
| | | public class ESVideoInfo |
| | | { |