From 9f326f4000847e6167d8166fa2f6a66f53cb3734 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 17 十二月 2020 09:07:13 +0800
Subject: [PATCH] 新云端Ver1.3

---
 ZigbeeApp/Shared/Phone/Device/VideoIntercom/VideoMachine.cs |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/VideoIntercom/VideoMachine.cs b/ZigbeeApp/Shared/Phone/Device/VideoIntercom/VideoMachine.cs
index 070ceac..f2a8acb 100755
--- a/ZigbeeApp/Shared/Phone/Device/VideoIntercom/VideoMachine.cs
+++ b/ZigbeeApp/Shared/Phone/Device/VideoIntercom/VideoMachine.cs
@@ -105,7 +105,16 @@
                      eSVideoInfo.RoomName = videoInfos.RoomName;
                      GateWay.Ios.ESVideo.ShowESVideoMonitor(eSVideoInfo);
 #elif Android
-                   
+                     ((BaseActivity)Application.Activity).AudioRecord((result) =>
+                     {
+                         if (result == false) { return; }
+                         Shared.Phone.VideoPhone.ESVideoInfo eSVideoInfo = new Shared.Phone.VideoPhone.ESVideoInfo();
+                         eSVideoInfo.DeviceName = videoInfos.DeviceName;
+                         eSVideoInfo.ESVideoUUID = videoInfos.ESVideoUUID;
+                         eSVideoInfo.ESRoomID = videoInfos.ESRoomID;
+                         eSVideoInfo.RoomName = videoInfos.RoomName;
+                         Shared.Phone.VideoPhone.ESVideo.ShowESVideoMonitor(eSVideoInfo);
+                     });
 #endif
                  };
 
@@ -115,7 +124,7 @@
         /// <summary>
         /// 鍒ゆ柇璐﹀彿鏄惁鏀寔鍙瀵硅
         /// </summary>
-        /// <param name="topFrameLayout"></param>
+        /// <param name="topFrameLayout">鍙瀵硅鍥炬爣鐨勭埗鎺т欢</param>
         public async static void AccountSupportVideo(FrameLayout topFrameLayout)
         {
             var jobject = new JObject();
@@ -145,7 +154,7 @@
                             CloudsVideo cloudsVideo = Newtonsoft.Json.JsonConvert.DeserializeObject<CloudsVideo>(json["ResponseData"].ToString());
                             videoList = await GetVideoInfoList(cloudsVideo);
                         }
-                        if (UserCenter.UserCenterResourse.ResidenceOption.SafetyShortcut)
+                        if (HdlUserCenterResourse.ResidenceOption.SafetyShortcut)
                         {
                             videoIntercomBtn.X = Application.GetRealWidth(746 + 10);
                         }
@@ -160,15 +169,12 @@
                             UserView.HomePage.Instance.AddChidren(videoMachine);
                             UserView.HomePage.Instance.PageIndex += 1;
                             videoMachine.Show(videoList);
-
+                            
                         };
                     }
                 }
                 catch { }
             }
-
-
-
         }
         /// <summary>
         /// 鑾峰彇鍙瀵硅鍒楄〃

--
Gitblit v1.8.0