| | |
| | | //} |
| | | |
| | | //======================获取可视对讲设备列表==================== |
| | | 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; |
| | | } |
| | | } |
| | | } |
| | | |
| | | //======================获取Sip账号并且初始化SDK可视对讲设备列表==================== |
| | | if (isInterphoneType_HDL) |
| | | { |
| | | //HDLLinphone可视对讲,获取Sip账号并初始化SDK |
| | | HDLLinphone.Current.getHDLSipInfoAndInitSDK(DB_ResidenceData.Instance.CurrentRegion.id); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |