3个文件已添加
5个文件已删除
11个文件已修改
1 文件已重命名
| | |
| | | { |
| | | |
| | | |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "12.2.8.165")] |
| | | public partial class Resource |
| | | { |
| | | |
| | |
| | | public override void OnResignActivation(UIApplication application) |
| | | { |
| | | //设置全视通状态 |
| | | string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | string errorVersion = "16.2.0"; |
| | | if (systemVersion.CompareTo(errorVersion) < 0)///全视通不兼容ios16以上的系统,不要加载这个先 |
| | | { |
| | | Shared.IOS.HDLFVSDK.Video.FVapplicationWillResignActive(application); |
| | | } |
| | | //string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | //string errorVersion = "16.2.0"; |
| | | //if (systemVersion.CompareTo(errorVersion) < 0)///全视通不兼容ios16以上的系统,不要加载这个先 |
| | | //{ |
| | | // Shared.IOS.HDLFVSDK.Video.FVapplicationWillResignActive(application); |
| | | //} |
| | | Console.WriteLine("OnResignActivation"); |
| | | UserInfo.Current.unlockTime = DateTime.Now; |
| | | } |
| | |
| | | isInterphoneType_HDL = true; |
| | | DB_ResidenceData.Instance.SupportFacePass = true; |
| | | DB_ResidenceData.Instance.SaveResidenceData(); |
| | | |
| | | Entity.DB_ResidenceData.Instance.SupportFVDevice = true; |
| | | DB_ResidenceData.Instance.SupportFVDevice = true; |
| | | } |
| | | else if (video.interphoneType == InterphoneType.FREEVIEW.ToString()) |
| | | { |
| | | //为全视通可视对讲 |
| | | DB_ResidenceData.Instance.SupportFacePass = true; |
| | | Entity.DB_ResidenceData.Instance.SupportVisitorManage = true; |
| | | Entity.DB_ResidenceData.Instance.SupportFVDevice = true; |
| | | |
| | | //isInterphoneType_HDL = true; |
| | | isInterphoneType_FREEVIEW = true; |
| | | |
| | | //DB_ResidenceData.Instance.SupportFacePass = true; |
| | | //Entity.DB_ResidenceData.Instance.SupportVisitorManage = true; |
| | | //Entity.DB_ResidenceData.Instance.SupportFVDevice = true; |
| | | //isInterphoneType_FREEVIEW = true; |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | else if (isInterphoneType_FREEVIEW) |
| | | { |
| | | |
| | | //HDLLinphone可视对讲,获取Sip账号并初始化SDK |
| | | HDLCallVideoInfo callVideoInfo = new HDLCallVideoInfo(); |
| | | callVideoInfo.HomeId = DB_ResidenceData.Instance.CurrentRegion.id; |
| | |
| | | { |
| | | |
| | | #if __IOS__ |
| | | string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | string errorVersion = "16.2.0"; |
| | | if (systemVersion.CompareTo(errorVersion) < 0)///全视通不兼容ios16以上的系统,不要加载这个先 |
| | | { |
| | | List<VisitorTempPassword> dataList = new List<VisitorTempPassword>(); |
| | | Dictionary<string, object> dictionary = new Dictionary<string, object>(); |
| | | dictionary.Add("homeId", Entity.DB_ResidenceData.Instance.CurrentRegion.id); |
| | | var requestJson = HttpUtil.GetSignRequestJson(dictionary); |
| | | ResponsePackNew pack = HttpUtil.RequestHttpsPost(NewAPI.Api_Post_GetExtMemberInfo, requestJson); |
| | | if (pack != null) |
| | | { |
| | | var data = JsonConvert.DeserializeObject<FreeviewMemberInfo>(pack.Data.ToString()); |
| | | //登录全视通 |
| | | Shared.IOS.HDLFVSDK.Video.Init("", data.extUserId, DB_ResidenceData.Instance.CurrentRegion.id, "78FF1E4D-FC0A-4E71-9B79-0448E4460BD7", "T0001", "120.77.53.170:9700", "120.77.53.170:21664"); |
| | | |
| | | } |
| | | } |
| | | //string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | //string errorVersion = "16.2.0"; |
| | | //if (systemVersion.CompareTo(errorVersion) < 0)///全视通不兼容ios16以上的系统,不要加载这个先 |
| | | //{ |
| | | // List<VisitorTempPassword> dataList = new List<VisitorTempPassword>(); |
| | | // Dictionary<string, object> dictionary = new Dictionary<string, object>(); |
| | | // dictionary.Add("homeId", Entity.DB_ResidenceData.Instance.CurrentRegion.id); |
| | | // var requestJson = HttpUtil.GetSignRequestJson(dictionary); |
| | | // ResponsePackNew pack = HttpUtil.RequestHttpsPost(NewAPI.Api_Post_GetExtMemberInfo, requestJson); |
| | | // if (pack != null) |
| | | // { |
| | | // var data = JsonConvert.DeserializeObject<FreeviewMemberInfo>(pack.Data.ToString()); |
| | | // //登录全视通 |
| | | // Shared.IOS.HDLFVSDK.Video.Init("", data.extUserId, DB_ResidenceData.Instance.CurrentRegion.id, "78FF1E4D-FC0A-4E71-9B79-0448E4460BD7", "T0001", "120.77.53.170:9700", "120.77.53.170:21664"); |
| | | // } |
| | | //} |
| | | #endif |
| | | } |
| | | |
| | |
| | | |
| | | #if __IOS__ |
| | | //5.全视通登出 |
| | | Shared.IOS.HDLFVSDK.Video.Logout(); |
| | | //Shared.IOS.HDLFVSDK.Video.Logout(); |
| | | //6.清空Siri共享数据信息 |
| | | new Other.SkipControl().SetData(false, "", "", "", ""); |
| | | var sDM = new SiriKit.SceneDateManager(); |
| | |
| | | /// <returns></returns> |
| | | public void ConvertReceiveData(byte[] receiveBytes, string ip) |
| | | { |
| | | if (!UserInfo.Current.IsLogin) |
| | | { |
| | | return; |
| | | } |
| | | var reString = Encoding.UTF8.GetString(receiveBytes); |
| | | AnalysisReceiveData(reString, receiveBytes, ip); |
| | | } |
| | |
| | | /// <returns></returns> |
| | | public LocalCommunicationData AnalysisReceiveData(string receiveString, byte[] originalReceiveBytes, string sIp = null) |
| | | { |
| | | |
| | | LocalCommunicationData receiveObj = new LocalCommunicationData(); |
| | | |
| | | |
| | |
| | | } else if (interphoneType == InterphoneType.FREEVIEW.ToString()) |
| | | { |
| | | //全视通监视 |
| | | NSDictionary deviceInfo = new NSDictionary("deviceCode",mESVideoInfo.deviceCode, "deviceName", mESVideoInfo.DeviceName); |
| | | Shared.IOS.HDLFVSDK.Video.Monitor(deviceInfo); |
| | | //HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo); |
| | | //NSDictionary deviceInfo = new NSDictionary("deviceCode",mESVideoInfo.deviceCode, "deviceName", mESVideoInfo.DeviceName); |
| | | //Shared.IOS.HDLFVSDK.Video.Monitor(deviceInfo); |
| | | } |
| | | else |
| | | { |
| | |
| | | DAL.Mqtt.MqttClient.DisConnectRemote("退出登录,或者切换住宅"); |
| | | |
| | | #if IOS |
| | | //退出全视通登录 |
| | | Shared.IOS.HDLFVSDK.Video.Logout(); |
| | | //重置默认不支持全视通 |
| | | Entity.DB_ResidenceData.Instance.SupportFVDevice = false; |
| | | ////退出全视通登录 |
| | | //Shared.IOS.HDLFVSDK.Video.Logout(); |
| | | ////重置默认不支持全视通 |
| | | //Entity.DB_ResidenceData.Instance.SupportFVDevice = false; |
| | | #endif |
| | | } |
| | | /// <summary> |
| | |
| | | view2.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | //主界面控件 |
| | | FrameLayout fLayout = new FrameLayout |
| | | FrameLayout fLayout2 = new FrameLayout |
| | | { |
| | | BackgroundColor = CSS.CSS_Color.viewTrans60lucence, |
| | | }; |
| | | this.AddChidren(fLayout); |
| | | TimeView(fLayout, device, view2.btnState); |
| | | this.AddChidren(fLayout2); |
| | | TimeView(fLayout2, device, view2.btnState); |
| | | |
| | | }; |
| | | |
| | |
| | | |
| | | |
| | | #if __IOS__ |
| | | //刷新接口请求所需要的参数 |
| | | Foundation.NSDictionary info = new Foundation.NSDictionary("regionUrl", HttpUtil.GlobalRequestHttpsHost, "token", UserInfo.Current.LoginTokenString, "appkey", "HDL-HOME-APP-TEST", "secret", "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss", "refreshToken", UserInfo.Current.RefreshToken); |
| | | Shared.IOS.HDLFVSDK.Video.RefreshInfo(info); |
| | | ////跳转访客管理界面 |
| | | Shared.IOS.HDLFVSDK.Video.ShowVisitorManager(); |
| | | ////刷新接口请求所需要的参数 |
| | | //Foundation.NSDictionary info = new Foundation.NSDictionary("regionUrl", HttpUtil.GlobalRequestHttpsHost, "token", UserInfo.Current.LoginTokenString, "appkey", "HDL-HOME-APP-TEST", "secret", "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss", "refreshToken", UserInfo.Current.RefreshToken); |
| | | //Shared.IOS.HDLFVSDK.Video.RefreshInfo(info); |
| | | //////跳转访客管理界面 |
| | | //Shared.IOS.HDLFVSDK.Video.ShowVisitorManager(); |
| | | #else |
| | | var page = new VisitorQRCodePage(); |
| | | MainPage.BasePageView.AddChidren(page); |