From 5bc255efe4b83702db368b7af3945e9a8368bfce Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期二, 13 六月 2023 20:19:09 +0800
Subject: [PATCH] faeture 摄像头放大功能

---
 EZSDK/EZSDK/EZSDK.m |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/EZSDK/EZSDK/EZSDK.m b/EZSDK/EZSDK/EZSDK.m
index 91fa7ce..ae54994 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];
@@ -229,6 +229,9 @@
  @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"];

--
Gitblit v1.8.0