|
@@ -20,6 +20,9 @@
|
|
|
#import "editShareView.h"
|
|
|
#import "previewToUploadFileView.h"
|
|
|
#import "netWorkManager.h"
|
|
|
+#import "videoPlayByAVPlayerViewController.h"
|
|
|
+#import "audioPlayerViewController.h"
|
|
|
+#import "imageDetailsScrollViewController.h"
|
|
|
|
|
|
|
|
|
@interface previewFileAndFolderSecondViewController ()<UITableViewDelegate,UITableViewDataSource,DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
|
|
@@ -254,7 +257,39 @@
|
|
|
vc.canShareType = _canShareType;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
-
|
|
|
+ else if([dataModel.type isEqualToString:@"video"]){
|
|
|
+ videoPlayByAVPlayerViewController *vc = [videoPlayByAVPlayerViewController new];
|
|
|
+ vc.VideoDataMode = dataModel;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+
|
|
|
+ KWeakSelf
|
|
|
+ vc.didNeedToRegetDataFun = ^{
|
|
|
+ [weakSelf getFileListFun];
|
|
|
+ };
|
|
|
+ }
|
|
|
+ else if([dataModel.type isEqualToString:@"audio"]){
|
|
|
+
|
|
|
+ NSMutableArray *dataArr = [NSMutableArray new];
|
|
|
+ [dataArr addObject:dataModel];
|
|
|
+
|
|
|
+ audioPlayerViewController *vc = [audioPlayerViewController new];
|
|
|
+ vc.index = 0;
|
|
|
+ vc.audioOutSidedataArray = dataArr;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
+ else if([dataModel.type isEqualToString:@"jpg"]){
|
|
|
+
|
|
|
+ NSMutableArray *jpgDataArr = [NSMutableArray new];
|
|
|
+ NSInteger index = 0;
|
|
|
+ [jpgDataArr addObject:dataModel];
|
|
|
+
|
|
|
+ imageDetailsScrollViewController *vc = [imageDetailsScrollViewController new];
|
|
|
+ vc.index = index;
|
|
|
+ vc.totalDataArr = jpgDataArr;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ vc.canShareType = _canShareType;
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|