From b8bdf52ccc38e3c6b0a95c2b60f59fc99dc546fd Mon Sep 17 00:00:00 2001 From: lss <lsc@hdlchina.com.cn> Date: 星期四, 22 四月 2021 09:25:06 +0800 Subject: [PATCH] 2021-4-22 对接乐橙可视对讲 --- HDL_ON/Common/HDLCommon.cs | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs index 70b5864..5c585fd 100644 --- a/HDL_ON/Common/HDLCommon.cs +++ b/HDL_ON/Common/HDLCommon.cs @@ -279,8 +279,53 @@ //new Alert(jpushMessageInfo.Title, jpushMessageInfo.Content, Language.StringByID(StringId.Close)).Show(); } +<<<<<<< Updated upstream }); return; +======= + ESOnVideo.Current.ShowESvideoVideoIntercom(eSVideoInfo, "FLVI"); + + } + else if (jpushMessageInfo.messageType.Contains(PushMessageType.HDL_INTERPHONE.ToString())) + { + if (string.IsNullOrEmpty(jpushMessageInfo.expantContent)) return; + + //瀛楁鍏煎闂锛屽彧鑳界洿鎺ュ彇鍊间簡 + var json= Newtonsoft.Json.Linq.JObject.Parse(jpushMessageInfo.expantContent); + ESVideoInfo eSVideoInfo = new ESVideoInfo();// GetESOnVideoJson(jpushMessageInfo.expantContent); + eSVideoInfo.callId = json["callId"].ToString(); + eSVideoInfo.Lc_AccessToken = UI.UI2.PersonalCenter.PirDevice.PirSend.LcSubAccessToken;//json["subAccountToken"].ToString();// + eSVideoInfo.Lc_DeviceId = json["deviceId"].ToString(); + eSVideoInfo.Lc_Location = OnAppConfig.Instance.RequestHttpsHost.Contains("China") ? 0 : 1; + eSVideoInfo.Lc_PlayToken = json["token"].ToString(); + eSVideoInfo.Lc_Psk = json["cname"].ToString(); + + if (eSVideoInfo == null) return; + + ESOnVideo.Current.ShowESvideoVideoIntercom(eSVideoInfo, "IMOUVISIAL"); + + } + } + } + catch(Exception EX) + { + Utlis.WriteLine("catch: " + EX.ToString()); + } + } + + /// <summary> + /// 瑙f瀽涓版灄鍙瀵硅鎺ㄩ�佹暟鎹� + /// </summary> + /// <param name="jsonStr"></param> + /// <returns></returns> + ESVideoInfo GetESOnVideoJson(string jsonStr) + { + try + { + if (!string.IsNullOrEmpty(jsonStr)) + { + return Newtonsoft.Json.JsonConvert.DeserializeObject<ESVideoInfo>(jsonStr); +>>>>>>> Stashed changes } } catch -- Gitblit v1.8.0