| | |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) { |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log("Error", $"自研可视对讲通知异常:{ex.StackTrace}"); |
| | | } |
| | | |
| | |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | |
| | | #elif __IOS__ |
| | | #elif __IOS__ |
| | | SoundPlayer.Ins.PlaySound(); |
| | | new Thread(() => { |
| | | int count = 0; |
| | |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | #endif |
| | | #endif |
| | | |
| | | MainPage.Log("接收到推送:HDL Linphone 狄耐克"); |
| | | eSVideoInfo.HomeId = jpushMessageInfo.HomeId; |
| | |
| | | } |
| | | else if (jpushMessageInfo.messageType == (PushMessageType.DOOR_BELL.ToString())) |
| | | { |
| | | try |
| | | { |
| | | var json = Newtonsoft.Json.Linq.JObject.Parse(jpushMessageInfo.expantContent); |
| | | string interphoneTypeEnum = json["interphoneTypeEnum"].ToString(); |
| | | if (string.IsNullOrEmpty(interphoneTypeEnum)) return; |
| | | ESVideoInfo eSVideoInfo = new ESVideoInfo(); |
| | | if (interphoneTypeEnum == InterphoneType.EZVIZ.ToString()) |
| | | { |
| | | eSVideoInfo.Lc_AccessToken = json["subToken"].ToString();//"子账号token |
| | | eSVideoInfo.DeviceSerial = json["devSerial"].ToString();//设备序列号 |
| | | eSVideoInfo.Lc_DeviceId = json["deviceId"].ToString(); |
| | | eSVideoInfo.spk = json["spk"].ToString(); |
| | | if (eSVideoInfo.spk == SPK.Peephole) |
| | | { |
| | | eSVideoInfo.HomeId = jpushMessageInfo.HomeId; |
| | | if (json.ContainsKey("msgId") && !string.IsNullOrEmpty(json["msgId"].ToString())) |
| | | { |
| | | eSVideoInfo.msgId = json["msgId"].ToString(); |
| | | } |
| | | if (json.ContainsKey("currentTime") && !string.IsNullOrEmpty(json["currentTime"].ToString())) |
| | | { |
| | | eSVideoInfo.currentTime = json["currentTime"].ToString(); |
| | | } |
| | | |
| | | if (eSVideoInfo != null) |
| | | { |
| | | //打开呼叫页面 |
| | | ESOnVideo.Current.ShowESvideoVideoIntercom(eSVideoInfo, interphoneTypeEnum); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log("Error", $"结束门铃推送数据异常:{ex.Message}"); |
| | | } |
| | | //萤石门锁推送 |
| | | HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.DoorLockPush(jpushMessageInfo); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | catch (Exception EX) |