From 45aa0a09aeef2e8ff52ab0987daf23ccb495b6b6 Mon Sep 17 00:00:00 2001 From: lss <lsc@hdlchina.com.cn> Date: 星期二, 17 五月 2022 11:18:35 +0800 Subject: [PATCH] Merge branch 'lss' into dev --- HDL_ON/Common/ApiUtlis.cs | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs index 75c9bf3..ae6c314 100644 --- a/HDL_ON/Common/ApiUtlis.cs +++ b/HDL_ON/Common/ApiUtlis.cs @@ -284,7 +284,8 @@ //======================鑾峰彇鍙瀵硅璁惧鍒楄〃==================== bool isInterphoneType_HDL = false;//鏄惁涓篐DLLinphone鍙瀵硅 - var videoInfo= VideoSend.GetVideoInfoList(); + bool isInterphoneType_FREEVIEW = false;//鏄惁涓哄叏瑙嗛�氬彲瑙嗗璁� + var videoInfo = VideoSend.GetVideoInfoList(); if (videoInfo.Code == StateCode.SUCCESS) { string videoList = videoInfo.Data.ToString(); @@ -299,6 +300,17 @@ 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()) + {//涓哄叏瑙嗛�氬彲瑙嗗璁� + Entity.DB_ResidenceData.Instance.SupportVisitorManage = true; + Entity.DB_ResidenceData.Instance.SupportFVDevice = true; + + isInterphoneType_FREEVIEW = true; + } } } @@ -311,15 +323,25 @@ { //HDLLinphone鍙瀵硅,鑾峰彇Sip璐﹀彿骞跺垵濮嬪寲SDK HDLLinphone.Current.GetHDLSipInfoAndInitSDK(DB_ResidenceData.Instance.CurrentRegion.id); + } else { Utlis.WriteLine("褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅,閫�鍑虹櫥褰曟墍鏈夎处鍙�"); //褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅 HDLLinphone.Current.LogoutAllAccount(); + } } + //======================鐧诲綍鍏ㄨ閫�==================== + if (isInterphoneType_FREEVIEW) + { + //鐧诲綍鍏ㄨ閫� + Shared.IOS.HDLFVSDK.Video.Init("", DB_ResidenceData.Instance.CurrentRegion.id); + } + + //======================瀹夐槻==================== GetSecurityList(); -- Gitblit v1.8.0