| | |
| | | /// </summary> |
| | | public void SkipAddDeviceActivity(string spk) |
| | | { |
| | | #if __IOS__ |
| | | |
| | | #else |
| | | this.InitializationAndroidData((isBools) => |
| | | { |
| | | if (!isBools) { |
| | | this.MainThread(()=> { |
| | | if (!isBools) |
| | | { |
| | | this.MainThread(() => |
| | | { |
| | | this.ShowTip("先获取萤石云子账号token失败。"); |
| | | |
| | | }); |
| | | } |
| | | #if __IOS__ |
| | | |
| | | #else |
| | | HDLEzvizSdk.Instance.JumpToEZScanActivity(Application.Activity,spk); |
| | | HDLEzvizSdk.SetAddCallback(new AndroidIHdlInterface((isBool, adnroidActionDevSerial) => |
| | | { |
| | |
| | | } |
| | | |
| | | })); |
| | | #endif |
| | | }); |
| | | |
| | | |
| | | |
| | | #endif |
| | | |
| | | |
| | | } |
| | | /// <summary> |
| | |
| | | /// <param name="deviceSerial">设备序列号</param> |
| | | /// <param name="deviceId">设备id(云端上deviceId)</param> |
| | | /// <param name="spk">设备spk(云雀上定义好的)</param> |
| | | public void SkipRTVActivity(string deviceSerial, string deviceId, string spk) |
| | | /// <param name="isDialog">是否需要弹框</param> |
| | | public void SkipRTVActivity(string deviceSerial, string deviceId, string spk, bool isDialog) |
| | | { |
| | | #if __IOS__ |
| | | #else |
| | | |
| | | this.InitializationAndroidData((isBools) => |
| | | { |
| | | if (!isBools) |
| | | { |
| | | this.MainThread(() => { |
| | | this.MainThread(() => |
| | | { |
| | | this.ShowTip("先获取萤石云子账号token失败。"); |
| | | |
| | | }); |
| | | } |
| | | |
| | | if (isDialog) |
| | | { |
| | | Video.View.ShowDialog.Currnet.ClickBox(Language.StringByID(StringId.laizimenlinghujiao), (dialog) => |
| | | { |
| | | dialog.Close(); |
| | | #if __IOS__ |
| | | |
| | | #else |
| | | HDLEzvizSdk.Instance.JumpToEZRealPlayActivity(Application.Activity,deviceId,deviceSerial,spk); |
| | | #endif |
| | | }, (dialog) => |
| | | { |
| | | dialog.Close(); |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | #if __IOS__ |
| | | #else |
| | | HDLEzvizSdk.Instance.JumpToEZRealPlayActivity(Application.Activity,deviceId,deviceSerial,spk); |
| | | #endif |
| | | } |
| | | |
| | | |
| | | }); |
| | | |
| | | |
| | | #endif |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 浏览历史记录 |
| | | /// </summary> |
| | | public void SkipRecordActivity(string deviceId) |
| | | { |
| | | this.InitializationAndroidData((s)=> { |
| | | this.InitializationAndroidData((s) => |
| | | { |
| | | |
| | | #if __IOS__ |
| | | #else |
| | |
| | | EZSDK.IOS.EZSDK.SharedInstance().SetRequestHttpsHostAndPlatform(OnAppConfig.Instance.RequestHttpsHost, 1, DB_ResidenceData.Instance.CurrentRegion.id); |
| | | //2.设置萤石子账号的AccessToken到SDK |
| | | EZSDK.IOS.EZSDK.SharedInstance().SetEZAccessToken(ezChildAccessToken); |
| | | ////3.打开摄像头设备列表页面 |
| | | EZSDK.IOS.EZSDK.SharedInstance().Go2EZvizMonitor(); |
| | | //////3.打开摄像头设备列表页面 |
| | | //EZSDK.IOS.EZSDK.SharedInstance().Go2EZvizMonitor(); |
| | | //EZSDK.IOS.EZDeviceInfo info = new EZSDK.IOS.EZDeviceInfo(); |
| | | //info.de |
| | | //EZSDK.IOS.EZSDK.Play(info); |
| | |
| | | } |
| | | |
| | | #if __IOS__ |
| | | ///// <summary> |
| | | ///// 专门定义给Ios回调用着,没有特殊含义 |
| | | ///// </summary> |
| | | //public class IosIHdlInterface : Shared.IOS.HDLLinphoneSDK.HDLLinphoneCallDelegate |
| | | //{ |
| | | |
| | | // Action<bool, string> mAction; |
| | | // public IosIHdlInterface(Action<bool, string> action) |
| | | // { |
| | | // mAction = action; |
| | | // } |
| | | // /// <summary> |
| | | // /// |
| | | // /// </summary> |
| | | // /// <param name="p0">true是入网成功(源生回调返回)</param> |
| | | // /// <param name="p1">设备的序列化(源生回调返回)</param> |
| | | // public void AddCallback(bool p0, string p1) |
| | | // { |
| | | // mAction?.Invoke(p0, p1); |
| | | // } |
| | | |
| | | |
| | | //} |
| | | #else |
| | | /// <summary> |
| | | /// |
| | | /// 专门定义给安卓回调用着,没有特殊含义 |
| | | /// </summary> |
| | | public class AndroidIHdlInterface : Java.Lang.Object, IHdlInterface |
| | | { |