| | |
| | | public ESVideoInfo esVideoInfo; |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// 暂时没用 |
| | | /// </summary> |
| | | public void InitESVideoSDK() |
| | | { |
| | |
| | | //乐橙可视对讲 |
| | | //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; |
| | |
| | | { |
| | | 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) |
| | |
| | | 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; |