| | |
| | | #import <Photos/Photos.h> |
| | | #import "EZLivePlayViewController.h" |
| | | #import "UIViewController+EZBackPop.h" |
| | | #import "EZDeviceInfo.h" |
| | | #import "EZPlayer.h" |
| | | #import <EZOpenSDKFramework/EZDeviceInfo.h> |
| | | #import <EZOpenSDKFramework/EZPlayer.h> |
| | | #import "DDKit.h" |
| | | #import "Masonry.h" |
| | | #import "HIKLoadView.h" |
| | | #import "MBProgressHUD.h" |
| | | #import "EZCameraInfo.h" |
| | | #import <EZOpenSDKFramework/EZCameraInfo.h> |
| | | #import <AVFoundation/AVFoundation.h> |
| | | #import "Toast+UIView.h" |
| | | #import "EZStreamPlayer.h" |
| | | #import <EZOpenSDKFramework/EZStreamPlayer.h> |
| | | #import "MBProgressHUD.h" |
| | | #import "EZPMPlayPrivateTokenInfo.h" |
| | | #import <EZOpenSDKFramework/EZPMPlayPrivateTokenInfo.h> |
| | | #import "HDLEZAlertInputView.h" |
| | | #define MinimumZoomScale 1.0 |
| | | #define MaximumZoomScale 4.0 |
| | |
| | | self.scrollView.multipleTouchEnabled = YES; |
| | | self.scrollView.pagingEnabled = NO; |
| | | |
| | | if ([GlobalKit shareKit].deviceType==HDLEZDeviceType_Door) {//为门锁时,只显示麦克风和开门按钮 |
| | | self.captureButton.hidden=YES; |
| | | self.localRecordButton.hidden=YES; |
| | | if ([GlobalKit shareKit].deviceType==HDLEZDeviceType_Door) {//为门锁时,显示麦克风 |
| | | // self.captureButton.hidden=YES; |
| | | // self.localRecordButton.hidden=YES; |
| | | self.controlButton.hidden=YES; |
| | | |
| | | //重设控制台按钮 |
| | |
| | | |
| | | [_emptyButton setTitle:[NSString stringWithFormat:fromatStr,value] forState:UIControlStateNormal]; |
| | | } |
| | | |
| | | |
| | | ///** |
| | | // * 收到的画面长宽值 |
| | | // * |
| | | // * @param player 播放器对象 |
| | | // * @param height 高度 |
| | | // * @param width 宽度 |
| | | // */ |
| | | //- (void)player:(EZPlayer *)player didReceivedDisplayHeight:(NSInteger)height displayWidth:(NSInteger)width{ |
| | | // HDLEZLog(@"画面长:%ld,宽:%ld",(long)height,(long)width); |
| | | // CGFloat playerVH=self.playerView.frame.size.height; |
| | | // CGFloat playerVW=playerVH*(width/height); |
| | | // self.playerView.frame=CGRectMake(0, 0, 50, 50); |
| | | // HDLEZLog(@"playerView的frame:%f",self.playerView.frame.size.width); |
| | | // |
| | | //} |
| | | |
| | | |
| | | - (void)player:(EZPlayer *)player didPlayFailed:(NSError *)error |
| | |
| | | self.localRecordButton.enabled = NO; |
| | | self.captureButton.enabled = NO; |
| | | self.playerPlayButton.hidden = NO; |
| | | |
| | | //开门按钮置灰,不给点击(暂停的情况下不给开门) |
| | | [_unlockButton setImage:[UIImage imageNamed:@"hdl_ez_ic_unlock_disable"] forState:UIControlStateNormal]; |
| | | _unlockButton.enabled=NO; |
| | | |
| | | } |
| | | else |
| | | { |