From 0de4cf306d8e13fd57b3e04bfb81362a10f12a4d Mon Sep 17 00:00:00 2001 From: Davin <591807572@qq.com> Date: 星期一, 10 七月 2023 16:10:53 +0800 Subject: [PATCH] feature UI补全 --- EZSDK/EZSDK/EZSDK.m | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/EZSDK/EZSDK/EZSDK.m b/EZSDK/EZSDK/EZSDK.m index ae54994..4300cc7 100644 --- a/EZSDK/EZSDK/EZSDK.m +++ b/EZSDK/EZSDK/EZSDK.m @@ -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]; } /// 鎸囧畾搴忓垪鍙锋挱鏀� @@ -237,6 +247,7 @@ 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