From 3e4be5ed4d2c0395dd60e392baf86c59762059b1 Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期五, 30 六月 2023 10:14:50 +0800
Subject: [PATCH] feature 猫眼全屏布局调整 && UI细节适配

---
 EZSDK/EZSDK/EZSDK.m |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/EZSDK/EZSDK/EZSDK.m b/EZSDK/EZSDK/EZSDK.m
index 91fa7ce..4300cc7 100644
--- a/EZSDK/EZSDK/EZSDK.m
+++ b/EZSDK/EZSDK/EZSDK.m
@@ -51,11 +51,11 @@
         if (!LanguageIsChinese) {
             //娴峰鐗�
             isHavelibInit = [EZGlobalSDK initLibWithAppKey:globalAppKey];
-            NSLog(@"娴峰鐗坘ey--%@",globalAppKey);
+            HDLEZLog(@"娴峰鐗坘ey--%@",globalAppKey);
         }else{
             isHavelibInit = [EZOpenSDK initLibWithAppKey:appKey];
             [[GlobalKit shareKit] setHdlAppKey:appKey];
-            NSLog(@"鍥藉唴鐗坘ey--%@", appKey);
+            HDLEZLog(@"鍥藉唴鐗坘ey--%@", appKey);
         }
         [EZHCNetDeviceSDK initSDK];
         [EZOPENSDK enableP2P:YES];
@@ -202,8 +202,18 @@
 //            rootViewController.cameraIndex=0;
     [[self getCurrentVC].navigationBar setHidden:NO];
     [[self getCurrentVC] pushViewController:rootViewController animated:YES];
-    
-    
+}
+
+- (void)Play:(EZDeviceInfo*)deviceInfo showCallout:(BOOL)isShow {
+    [GlobalKit shareKit].deviceType=HDLEZDeviceType_Default;
+    UIStoryboard *addDeviceStoryBoard = [UIStoryboard storyboardWithName:@"EZMain" bundle:nil];
+    EZLivePlayViewController *rootViewController = [addDeviceStoryBoard instantiateViewControllerWithIdentifier:@"EZLivePlayViewController"];
+    rootViewController.isShowAlert = isShow;
+    rootViewController.deviceInfo=(EZDeviceInfo *)deviceInfo;
+    NSLog(@"play--iphone--deviceName -%@",rootViewController.deviceInfo.deviceName);
+
+    [[self getCurrentVC].navigationBar setHidden:NO];
+    [[self getCurrentVC] pushViewController:rootViewController animated:YES];
 }
 
 /// 鎸囧畾搴忓垪鍙锋挱鏀�
@@ -229,11 +239,15 @@
  @param deviceType 璁惧spk(鐢ㄤ簬鍖哄垎鏄惁涓洪棬閿�)
  */
 -(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString*)deviceId deviceType:(NSString *)deviceType{
+    if ([[self getCurrentVC] isKindOfClass:[EZLivePlayViewController class]]) {//闃叉閲嶅杩涘叆
+        return;
+    }
     [GlobalKit shareKit].deviceType=[deviceType isEqualToString:HDLEZ_DOOR_SPK] ? HDLEZDeviceType_Door : HDLEZDeviceType_Default;
     UIStoryboard *ezMainStoryBoard = [UIStoryboard storyboardWithName:@"EZMain" bundle:nil];
     EZLivePlayViewController *vc = [ezMainStoryBoard instantiateViewControllerWithIdentifier:@"EZLivePlayViewController"];
     vc.deviceId=deviceId;
     vc.deviceSerial=deviceSerial;
+    vc.isVideoDoorLock = [deviceType isEqualToString:HDLEZ_DOOR_SPK];
     [[self getCurrentVC] setNavigationBarHidden:NO];
     [[self getCurrentVC].navigationBar setHidden:NO];
     [[self getCurrentVC] pushViewController:vc animated:YES];

--
Gitblit v1.8.0