From ea285ffe71284f5499e870f89c65b710d2d6a79c Mon Sep 17 00:00:00 2001 From: lss <lsc@hdlchina.com.cn> Date: 星期一, 27 六月 2022 10:54:32 +0800 Subject: [PATCH] Merge branch 'wxr0114' of http://59.41.255.150:6688/r/~wxr/OnPro into wxr0114 --- HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs | 39 ++++++++++++++++++++++++++++++++------- 1 files changed, 32 insertions(+), 7 deletions(-) diff --git a/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs b/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs index 0965c39..5110263 100644 --- a/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs +++ b/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs @@ -110,6 +110,15 @@ { //HDLLinphone 鐙勮�愬厠 HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo); + ////鍏ㄨ閫� + //NSDictionary deviceInfo = new NSDictionary("deviceCode","3-1-11-2", "deviceName", mESVideoInfo.DeviceName); + //Shared.IOS.HDLFVSDK.Video.Monitor(deviceInfo); + } else if (interphoneType == InterphoneType.FREEVIEW.ToString()) + { + //鍏ㄨ閫氱洃瑙� + NSDictionary deviceInfo = new NSDictionary("deviceCode",mESVideoInfo.deviceCode, "deviceName", mESVideoInfo.DeviceName); + Shared.IOS.HDLFVSDK.Video.Monitor(deviceInfo); + //HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo); } else { @@ -120,7 +129,7 @@ if (interphoneType == InterphoneType.IMOUVISIAL.ToString()) { intent = new Intent(Shared.Application.Activity, typeof(HDL_ON_Android.LeChengVideoActivity)); - + //=========涔愭========== intent.PutExtra("Type", 0); intent.PutExtra("callId", mESVideoInfo.callId); @@ -147,22 +156,25 @@ intent.PutExtra("callId", mESVideoInfo.callId); intent.PutExtra("Type", 0); - + Shared.Application.Activity.StartActivity(intent); } else if (interphoneType == InterphoneType.HDL.ToString()) { //HDLLinphone 鐙勮�愬厠 - HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo); + HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo, InterphoneType.HDL.ToString()); + } + else if (interphoneType == InterphoneType.FREEVIEW.ToString()) + { + string sip_account = "sip:D" + mESVideoInfo.deviceCode + "@139.159.157.75:46000"; + mESVideoInfo.deviceSipAccount = sip_account; + HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo, InterphoneType.FREEVIEW.ToString()); } else { HDLUtils.WriteLine("鏈鎺ワ紝涓嶆敮鎸佺洃瑙�"); } - - - #endif } @@ -822,6 +834,16 @@ /// 璁惧sip璐﹀彿 interphoneType鏄疕DL鏃舵墠浼氭湁鍊� /// </summary> public string deviceSipAccount; + /// <summary> + /// spk + /// </summary> + public string spk=""; + + //========================鍏ㄨ閫�========================== + /// <summary> + /// 璁惧缂栧彿锛岀浉褰撲簬鍏ㄨ閫氱殑LocalDirectory瀛楁 + /// </summary> + public string deviceCode; } @@ -865,7 +887,10 @@ /// 鐙勮�愬厠 HDL Linphone /// </summary> HDL, - + /// <summary> + /// 鍏ㄨ閫氬璁� + /// </summary> + FREEVIEW, } } -- Gitblit v1.8.0