From d6fb0646531172f23648441c224cdcccd721b894 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期一, 14 十二月 2020 09:59:01 +0800
Subject: [PATCH] 请合并代码,完成晾衣架最终功能。

---
 ZigbeeApp/Shared/Phone/VideoPhone/ESVideo.cs |   81 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 81 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/VideoPhone/ESVideo.cs b/ZigbeeApp/Shared/Phone/VideoPhone/ESVideo.cs
new file mode 100755
index 0000000..9c9c214
--- /dev/null
+++ b/ZigbeeApp/Shared/Phone/VideoPhone/ESVideo.cs
@@ -0,0 +1,81 @@
+锘縰sing System;
+
+namespace Shared.Phone.VideoPhone
+{
+    public static class ESVideo
+    {
+
+        public static void InitESVideoSDK()
+        {
+            //ESVideo.InitESVideoSDK();
+        }
+
+        /// <summary>
+        /// 鐩戞帶椤甸潰
+        /// </summary>
+        /// <param name="mESVideoInfo"></param>
+        public static void ShowESVideoMonitor(ESVideoInfo mESVideoInfo)
+        {
+#if Android
+            Android.Content.Intent intent = new Android.Content.Intent(Application.Activity, typeof(GateWay.Droid.VideoActivity));
+            intent.PutExtra("DeviceName", mESVideoInfo.DeviceName);//瀹ゅ鏈虹殑鍚嶇О锛屼緥锛屽澶栨満
+            intent.PutExtra("ESRoomID", mESVideoInfo.ESRoomID);//褰撳墠鐢ㄦ埛鐨勬埧闂� ID
+            intent.PutExtra("ESVideoUUID", mESVideoInfo.ESVideoUUID);//瀹ゅ鏈篣UID锛屼緥:JJY000007FSEYX
+            intent.PutExtra("IsCollect", mESVideoInfo.IsCollect);//鏄惁鏀惰棌
+            intent.PutExtra("RoomName", mESVideoInfo.RoomName);//鎴块棿鍛藉悕锛屼緥 8鏍�1鍗曞厓0801
+            intent.AddFlags(Android.Content.ActivityFlags.NewTask);
+            intent.PutExtra("Type", 0);//绫诲瀷锛�0 鐩戞帶锛�1鍙嶅懠
+            Application.Activity.StartActivity(intent);
+#endif
+        }
+
+        /// <summary>
+        /// 琚懠鍙〉闈�
+        /// </summary>
+        /// <param name="mESVideoInfo"></param>
+        public static void ShowESvideoVideoIntercom(ESVideoInfo mESVideoInfo)
+        {
+#if Android
+            Android.Content.Intent intent = new Android.Content.Intent(Application.Activity, typeof(GateWay.Droid.VideoActivity));
+            intent.PutExtra("DeviceName", mESVideoInfo.DeviceName);//瀹ゅ鏈虹殑鍚嶇О锛屼緥锛屽澶栨満
+            intent.PutExtra("ESRoomID", mESVideoInfo.ESRoomID);//褰撳墠鐢ㄦ埛鐨勬埧闂� ID
+            intent.PutExtra("ESVideoUUID", mESVideoInfo.ESVideoUUID);//瀹ゅ鏈篣UID锛屼緥:JJY000007FSEYX
+            intent.PutExtra("IsCollect", mESVideoInfo.IsCollect);//鏄惁鏀惰棌
+            intent.PutExtra("RoomName", mESVideoInfo.RoomName);//鎴块棿鍛藉悕锛屼緥 8鏍�1鍗曞厓0801
+            intent.PutExtra("Type", 1);//绫诲瀷锛�0 鐩戞帶锛�1鍙嶅懠
+            Application.Activity.StartActivity(intent);
+#endif
+        }
+    }
+
+    public class ESVideoInfo
+    {
+        /// <summary>
+        /// 瀹ゅ鏈虹殑UUID
+        /// 渚嬶細JJY000007FSEYX
+        /// </summary>
+        public string ESVideoUUID = string.Empty;
+        /// <summary>
+        /// 褰撳墠鐢ㄦ埛鐨勬埧闂碔D
+        /// 渚嬶細0801
+        /// </summary>
+        public int ESRoomID;
+        /// <summary>
+        /// 瀹ゅ鏈虹殑鍚嶇О
+        /// 渚嬶細瀹ゅ鏈�
+        /// </summary>
+        public string DeviceName = string.Empty;
+        /// <summary>
+        /// 鎴块棿鍛藉悕
+        /// 渚嬶細8鏍�1鍗曞厓0801
+        /// </summary>
+        public string RoomName = string.Empty;
+        /// <summary>
+        /// 鏄惁鏀惰棌
+        /// </summary>
+        public bool IsCollect;
+
+    }
+
+
+}

--
Gitblit v1.8.0