| | |
| | | //} |
| | | |
| | | //======================获取可视对讲设备列表==================== |
| | | bool isInterphoneType_HDL = false;//是否为HDLLinphone可视对讲 |
| | | var videoInfo= VideoSend.GetVideoInfoList(); |
| | | if (videoInfo.Code == StateCode.SUCCESS) |
| | | { |
| | |
| | | if (video.interphoneType == InterphoneType.IMOUVISIAL.ToString()) |
| | | { |
| | | UI.UI2.PersonalCenter.PirDevice.PirSend.LcSubAccessToken = video.subAccountToken; |
| | | } else if (video.interphoneType == InterphoneType.HDL.ToString()) { |
| | | isInterphoneType_HDL = true; |
| | | } |
| | | else if(video.interphoneType == InterphoneType.HDL.ToString()) |
| | | { |
| | |
| | | GetSecurityList(); |
| | | //======================SIP账号==================== |
| | | |
| | | //======================获取Sip账号并且初始化SDK可视对讲设备列表==================== |
| | | //如果检测线程没启动,才继续下面操作 因为App有可能刚启动马上收到推送了,然后才执行到这里 |
| | | if (HDLLinphone.Current.CheckIncomingCallThreadIsNull()) { |
| | | //当前住宅是HDL可视对讲类型的设备 |
| | | if (isInterphoneType_HDL) |
| | | { |
| | | //HDLLinphone可视对讲,获取Sip账号并初始化SDK |
| | | HDLLinphone.Current.GetHDLSipInfoAndInitSDK(DB_ResidenceData.Instance.CurrentRegion.id); |
| | | } |
| | | else |
| | | { |
| | | Utlis.WriteLine("当前住宅不支持HDL可视对讲,退出登录所有账号"); |
| | | //当前住宅不支持HDL可视对讲 |
| | | HDLLinphone.Current.LogoutAllAccount(); |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |