From f4f4c1c28f6c0fb892145819f444c2c0f95a80f0 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期二, 13 七月 2021 11:05:02 +0800
Subject: [PATCH] 萤石功能测试完成

---
 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 19a9398..aa8353d 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