From 80faceb86399017851f9f72feaaef868a37ff23f Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 26 三月 2021 10:50:35 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/lss' into temp-wxr

---
 HDL_ON/FengLinVideo/ESOnVideo.cs |  134 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 134 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/FengLinVideo/ESOnVideo.cs b/HDL_ON/FengLinVideo/ESOnVideo.cs
new file mode 100644
index 0000000..a0c085f
--- /dev/null
+++ b/HDL_ON/FengLinVideo/ESOnVideo.cs
@@ -0,0 +1,134 @@
+锘縰sing System;
+using Android.Content;
+
+namespace HDL_ON.FengLinVideo
+{
+    public class ESOnVideo
+    {
+        /// <summary>
+        /// 涓版灄鍙瀵硅
+        /// </summary>
+        private static ESOnVideo m_Current = null;
+        /// <summary>
+        /// 
+        /// </summary>
+        public static ESOnVideo Current
+        {
+            get
+            {
+                if (m_Current == null)
+                {
+                    m_Current = new ESOnVideo();
+                }
+                return m_Current;
+            }
+        }
+
+        public void InitESVideoSDK()
+        {
+            //ESVideo.
+        }
+
+        /// <summary>
+        /// 鐩戞帶椤甸潰
+        /// </summary>
+        /// <param name="mESVideoInfo"></param>
+        public void ShowESVideoMonitor(ESVideoInfo mESVideoInfo)
+        {
+
+            Intent intent = new Intent(Shared.Application.Activity, typeof(HDL_ON_Android.VideoActivity));
+            intent.PutExtra("ESVideoUUID", mESVideoInfo.ESVideoUUID);
+            intent.PutExtra("uuid", mESVideoInfo.uuid);
+            intent.PutExtra("DeviceName", mESVideoInfo.DeviceName);
+            intent.PutExtra("cmtID", mESVideoInfo.cmtID);
+            intent.PutExtra("roomno", mESVideoInfo.roomno);
+            intent.PutExtra("unitno", mESVideoInfo.unitno);
+            intent.PutExtra("HomeID", mESVideoInfo.HomeID);
+            intent.PutExtra("callId", mESVideoInfo.callId);
+            intent.PutExtra("Type", 0);
+            Shared.Application.Activity.StartActivity(intent);
+
+        }
+
+        /// <summary>
+        /// 琚懠鍙〉闈�
+        /// </summary>
+        /// <param name="mESVideoInfo"></param>
+        public void ShowESvideoVideoIntercom(ESVideoInfo mESVideoInfo)
+        {
+
+            Intent intent = new Intent(Shared.Application.Activity, typeof(HDL_ON_Android.VideoActivity));
+            intent.PutExtra("ESVideoUUID", mESVideoInfo.ESVideoUUID);
+            intent.PutExtra("uuid", mESVideoInfo.uuid);
+            intent.PutExtra("DeviceName", mESVideoInfo.DeviceName);
+            intent.PutExtra("cmtID", mESVideoInfo.cmtID);
+            intent.PutExtra("roomno", mESVideoInfo.roomno);
+            intent.PutExtra("unitno", mESVideoInfo.unitno);
+            intent.PutExtra("HomeID", mESVideoInfo.HomeID);
+            intent.PutExtra("callId", mESVideoInfo.callId);
+            intent.PutExtra("Type", 1);
+            Shared.Application.Activity.StartActivity(intent);
+        }
+
+        /// <summary>
+        /// 娴嬭瘯鏂规硶
+        /// </summary>
+        /// <param name="isMonitor"></param>
+        public void Test(bool isMonitor = true)
+        {
+            ESVideoInfo eSVideoInfo = new ESVideoInfo()
+            {
+                DeviceName = "瀹ゅ鏈�88",
+                ESVideoUUID = "JJY000019VPLLF",
+            };
+            if (isMonitor)
+            {
+                ShowESVideoMonitor(eSVideoInfo);
+            }
+            else
+            {
+                ShowESvideoVideoIntercom(eSVideoInfo);
+            }
+
+        }
+    }
+
+    public class ESVideoInfo
+    {
+        /// <summary>
+        /// 瀹ゅ鏈虹殑UUID
+        /// 渚嬶細JJY000007FSEYX
+        /// </summary>
+        public string ESVideoUUID = string.Empty;
+        /// <summary>
+        /// 瀹ゅ鏈虹殑鍚嶇О
+        /// 渚嬶細瀹ゅ鏈�
+        /// </summary>
+        public string DeviceName = string.Empty;
+        /// <summary>
+        /// 涓版灄璇锋眰鐨勫敮涓�id
+        /// </summary>
+        public string uuid;
+        /// <summary>
+        /// 涓版灄绀惧尯id
+        /// </summary>
+        public string cmtID;
+        /// <summary>
+        /// 涓版灄鎴块棿鍙�
+        /// </summary>
+        public string roomno;
+        /// <summary>
+        /// 涓版灄妤兼爧鍙�
+        /// </summary>
+        public string unitno;
+        /// <summary>
+        /// 涓版灄浣忓畢Id
+        /// </summary>
+        public string HomeID;
+        /// <summary>
+        /// 鍛煎彨璁板綍Id
+        /// </summary>
+        public string callId;
+
+    }
+}
\ No newline at end of file

--
Gitblit v1.8.0