| | |
| | | |
| | | //======================获取可视对讲设备列表==================== |
| | | bool isInterphoneType_HDL = false;//是否为HDLLinphone可视对讲 |
| | | var videoInfo= VideoSend.GetVideoInfoList(); |
| | | bool isInterphoneType_FREEVIEW = false;//是否为全视通可视对讲 |
| | | var videoInfo = VideoSend.GetVideoInfoList(); |
| | | if (videoInfo.Code == StateCode.SUCCESS) |
| | | { |
| | | string videoList = videoInfo.Data.ToString(); |
| | |
| | | isInterphoneType_HDL = true; |
| | | DB_ResidenceData.Instance.SupportFacePass = true; |
| | | DB_ResidenceData.Instance.SaveResidenceData(); |
| | | |
| | | Entity.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; |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | if (isInterphoneType_HDL) |
| | | { |
| | | //HDLLinphone可视对讲,获取Sip账号并初始化SDK |
| | | HDLLinphone.Current.GetHDLSipInfoAndInitSDK(DB_ResidenceData.Instance.CurrentRegion.id); |
| | | HDLCallVideoInfo callVideoInfo = new HDLCallVideoInfo(); |
| | | callVideoInfo.HomeId = DB_ResidenceData.Instance.CurrentRegion.id; |
| | | callVideoInfo.InterphoneType = InterphoneType.HDL.ToString(); |
| | | HDLLinphone.Current.GetHDLSipInfoAndInitSDK(callVideoInfo); |
| | | } |
| | | else if (isInterphoneType_FREEVIEW) |
| | | { |
| | | //HDLLinphone可视对讲,获取Sip账号并初始化SDK |
| | | HDLCallVideoInfo callVideoInfo = new HDLCallVideoInfo(); |
| | | callVideoInfo.HomeId = DB_ResidenceData.Instance.CurrentRegion.id; |
| | | callVideoInfo.InterphoneType = InterphoneType.FREEVIEW.ToString(); |
| | | HDLLinphone.Current.GetHDLSipInfoAndInitSDK(callVideoInfo); |
| | | } |
| | | else |
| | | { |
| | |
| | | HDLLinphone.Current.LogoutAllAccount(); |
| | | } |
| | | } |
| | | |
| | | //======================登录全视通==================== |
| | | if (isInterphoneType_FREEVIEW) |
| | | { |
| | | #if __IOS__ |
| | | //登录全视通 |
| | | Shared.IOS.HDLFVSDK.Video.Init("", DB_ResidenceData.Instance.CurrentRegion.id); |
| | | #endif |
| | | } |
| | | |
| | | |
| | | //======================安防==================== |
| | | GetSecurityList(); |
| | |
| | | { |
| | | if (DB_ResidenceData.Instance.CurrentRegion != null) |
| | | { |
| | | #region 读取本地数据 |
| | | #region 读取本地数据 |
| | | //搜索网关 |
| | | DriverLayer.Control.Ins.SearchLoaclGateway(); |
| | | //重新连接mqtt |
| | | DAL.Mqtt.MqttClient.DisConnectRemote("刷新数据,重连mqtt",false); |
| | | #endregion |
| | | #endregion |
| | | |
| | | } |
| | | } |