| | |
| | | } |
| | | 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 |
| | | { |
| | | Utlis.WriteLine("当前住宅不支持HDL可视对讲,退出登录所有账号"); |
| | | //当前住宅不支持HDL可视对讲 |
| | | HDLLinphone.Current.LogoutAllAccount(); |
| | | |
| | | } |
| | | } |
| | | |