| | |
| | | #import "UIViewController+EZBackPop.h" |
| | | #import "DDCollectionViewFlowLayout.h" |
| | | #import "MJRefresh.h" |
| | | #import "EZRecordDownloader.h" |
| | | #import "EZDeviceRecordDownloadTask.h" |
| | | #import "EZCloudRecordDownloadTask.h" |
| | | #import <EZOpenSDKFramework/EZRecordDownloader.h> |
| | | #import <EZOpenSDKFramework/EZDeviceRecordDownloadTask.h> |
| | | #import <EZOpenSDKFramework/EZCloudRecordDownloadTask.h> |
| | | #import "EZRecordCell.h" |
| | | #import "DDKit.h" |
| | | #import "EZCloudRecordFile.h" |
| | | #import "EZDeviceRecordFile.h" |
| | | #import "EZPlayer.h" |
| | | #import <EZOpenSDKFramework/EZCloudRecordFile.h> |
| | | #import <EZOpenSDKFramework/EZDeviceRecordFile.h> |
| | | #import <EZOpenSDKFramework/EZPlayer.h> |
| | | #import "HIKLoadView.h" |
| | | #import "Masonry.h" |
| | | #import "EZCameraInfo.h" |
| | | #import <EZOpenSDKFramework/EZCameraInfo.h> |
| | | #import "MBProgressHUD.h" |
| | | #import "Toast+UIView.h" |
| | | #import "EZCustomTableView.h" |
| | | #import "EZStreamPlayer.h" |
| | | #import <EZOpenSDKFramework/EZStreamPlayer.h> |
| | | |
| | | |
| | | @interface EZPlaybackViewController ()<DDCollectionViewDelegateFlowLayout, UICollectionViewDataSource,EZPlayerDelegate, UIAlertViewDelegate, EZRecordCellDelegate, EZCustomTableViewDelegate,EZStreamPlayerDelegate> |
| | |
| | | |
| | | cloudRateStr = @[@"x1",@"x4",@"x8",@"x16",@"x32"]; |
| | | sdCardRateStr = @[@"x1",@"x4",@"x8",@"x16"]; |
| | | |
| | | //2021-07-21 隐藏streamPlayBtn和rateBtn |
| | | [self.streamPlayBtn setHidden:YES]; |
| | | [self.rateBtn setHidden:YES]; |
| | | |
| | | } |
| | | |
| | | - (void)viewWillDisappear:(BOOL)animated { |
| | |
| | | cell.deviceSerial = _cameraInfo.deviceSerial; |
| | | cell.isSelectedDevice = _isSelectedDevice; |
| | | cell.delegate = self; |
| | | //2021-07-21 隐藏下载按钮 |
| | | [cell.downloadBtn setHidden:YES]; |
| | | |
| | | if(_isSelectedDevice) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | [UIView dd_showMessage:[NSString stringWithFormat:@"error code is %d",(int) error.code] onParentView:self.view]; |
| | | NSString *mes = [NSString stringWithFormat:@"%@(%ld)",NSLocalizedString(@"setting_opration_fail", @"操作失败"), (long)error.code]; |
| | | [UIView dd_showMessage:mes onParentView:self.view]; |
| | | [weakSelf.playbackList.header endRefreshing]; |
| | | [weakSelf.records removeAllObjects]; |
| | | [weakSelf.playbackList reloadData]; |
| | |
| | | if (error) |
| | | { |
| | | if (error.code > 0) { |
| | | [UIView dd_showMessage:[NSString stringWithFormat:@"error code is %d",(int) error.code] onParentView:self.view]; |
| | | NSString *mes = [NSString stringWithFormat:@"%@(%ld)",NSLocalizedString(@"setting_opration_fail", @"操作失败"), (long)error.code]; |
| | | [UIView dd_showMessage:mes onParentView:self.view]; |
| | | |
| | | } |
| | | [weakSelf.playbackList.header endRefreshing]; |
| | | [weakSelf.records removeAllObjects]; |