From 3add06f19c3c68289ca58fb61d15dfa059c5c8f5 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期四, 22 七月 2021 09:21:07 +0800
Subject: [PATCH] Merge branch 'wxr7-ez' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into wxr7-ez

---
 HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs b/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs
index bcce120..9a25874 100644
--- a/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs
+++ b/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs
@@ -189,9 +189,29 @@
             if (interphoneType == InterphoneType.IMOUVISIAL.ToString())
             {
                 intent = new Intent(Shared.Application.Activity, typeof(HDL_ON_Android.LeChengVideoActivity));
-            } else if (interphoneType == InterphoneType.EZVIZ.ToString())
+            }
+            else if (interphoneType == InterphoneType.EZVIZ.ToString())
             {
-                //钀ょ煶鐚溂鍛煎彨澶勭悊
+                ((BaseActivity)Shared.Application.Activity).SetCamera(b =>
+                {
+                    if (b)
+                    {
+                        intent = new Android.Content.Intent();
+                        var bundle = new Android.OS.Bundle();
+                        //浼犻�抧ame鍙傛暟涓簍inyphp
+                        bundle.PutString("EzChildAccessToken", mESVideoInfo.Lc_AccessToken);
+                        bundle.PutString("HdlToken", UserInfo.Current.LoginTokenString);
+                        bundle.PutString("Url", OnAppConfig.Instance.RequestHttpsHost);
+                        bundle.PutString("EzvizAppKey", "1aa98a90489b4838b966b57018b4b04b");
+                        bundle.PutInt("Platform", 1);
+                        bundle.PutString("HomeId", mESVideoInfo.HomeId);
+                        bundle.PutString("DeviceSerial", mESVideoInfo.DeviceSerial);
+                        intent.PutExtras(bundle);
+                        intent.SetComponent(new Android.Content.ComponentName(Shared.Application.Activity, "com.videogo.MainActivity"));
+                        Shared.Application.Activity.StartActivity(intent);
+                    }
+                });
+                return;
             }
             else
             {

--
Gitblit v1.8.0