Browse Source

1.视频界面需求处理完成

huangxiaodong 11 months ago
parent
commit
49ada433b0

+ 24 - 0
创维盒子/双子星云手机.xcodeproj/project.pbxproj

@@ -423,6 +423,10 @@
 		6B42A21E2C41040B000555BB /* UIInterface+HXRotation.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B42A21B2C41040B000555BB /* UIInterface+HXRotation.h */; };
 		6B42A21F2C41040B000555BB /* UIInterface+HXRotation.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B42A21C2C41040B000555BB /* UIInterface+HXRotation.m */; };
 		6B42A2202C41040B000555BB /* UIInterface+HXRotation.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B42A21C2C41040B000555BB /* UIInterface+HXRotation.m */; };
+		6B42A2232C41285C000555BB /* previewVideoPortraitTopMoreView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B42A2212C41285C000555BB /* previewVideoPortraitTopMoreView.h */; };
+		6B42A2242C41285C000555BB /* previewVideoPortraitTopMoreView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B42A2222C41285C000555BB /* previewVideoPortraitTopMoreView.m */; };
+		6B42A2252C41285C000555BB /* previewVideoPortraitTopMoreView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B42A2212C41285C000555BB /* previewVideoPortraitTopMoreView.h */; };
+		6B42A2262C41285C000555BB /* previewVideoPortraitTopMoreView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B42A2222C41285C000555BB /* previewVideoPortraitTopMoreView.m */; };
 		6B42C1572C2A6C2700936268 /* SYJUISwitch.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B42C1542C2A6C2600936268 /* SYJUISwitch.h */; };
 		6B42C1582C2A6C2700936268 /* SYJUISwitch.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B42C1542C2A6C2600936268 /* SYJUISwitch.h */; };
 		6B42C1592C2A6C2700936268 /* SYJUISwitch.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B42C1552C2A6C2600936268 /* SYJUISwitch.m */; };
@@ -618,6 +622,10 @@
 		6B7272602B0E240F00C03F87 /* uploadFileRecordTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B72725E2B0E240F00C03F87 /* uploadFileRecordTableView.m */; };
 		6B7B65582AD9227700BE8CB3 /* PlayerViewController+otherDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7B65562AD9227700BE8CB3 /* PlayerViewController+otherDelegate.h */; };
 		6B7B65592AD9227700BE8CB3 /* PlayerViewController+otherDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 6B7B65572AD9227700BE8CB3 /* PlayerViewController+otherDelegate.mm */; };
+		6B7DDF262C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7DDF242C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.h */; };
+		6B7DDF272C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7DDF252C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.m */; };
+		6B7DDF282C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7DDF242C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.h */; };
+		6B7DDF292C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7DDF252C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.m */; };
 		6B7E04282C3E5A98004B4948 /* customDownloadCacheManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7E041F2C3E5A97004B4948 /* customDownloadCacheManager.h */; };
 		6B7E04292C3E5A98004B4948 /* customDownloadCacheManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7E041F2C3E5A97004B4948 /* customDownloadCacheManager.h */; };
 		6B7E042A2C3E5A98004B4948 /* customDownloadCacheManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B7E04202C3E5A97004B4948 /* customDownloadCacheManager.m */; };
@@ -1619,6 +1627,8 @@
 		6B42A2102C40DC3D000555BB /* previewLandscapeTopMoreView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = previewLandscapeTopMoreView.m; sourceTree = "<group>"; };
 		6B42A21B2C41040B000555BB /* UIInterface+HXRotation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIInterface+HXRotation.h"; sourceTree = "<group>"; };
 		6B42A21C2C41040B000555BB /* UIInterface+HXRotation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIInterface+HXRotation.m"; sourceTree = "<group>"; };
+		6B42A2212C41285C000555BB /* previewVideoPortraitTopMoreView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = previewVideoPortraitTopMoreView.h; sourceTree = "<group>"; };
+		6B42A2222C41285C000555BB /* previewVideoPortraitTopMoreView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = previewVideoPortraitTopMoreView.m; sourceTree = "<group>"; };
 		6B42C1542C2A6C2600936268 /* SYJUISwitch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SYJUISwitch.h; sourceTree = "<group>"; };
 		6B42C1552C2A6C2600936268 /* SYJUISwitch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SYJUISwitch.m; sourceTree = "<group>"; };
 		6B45C4FB2B57BC87007E6911 /* cloudPhoneExtraFileListModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = cloudPhoneExtraFileListModel.h; sourceTree = "<group>"; };
@@ -1762,6 +1772,8 @@
 		6B7B656E2ADEAE3D00BE8CB3 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/HWAboutViewController.strings; sourceTree = "<group>"; };
 		6B7B656F2ADEAE3D00BE8CB3 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/HWHistoryViewController.strings; sourceTree = "<group>"; };
 		6B7B65702ADEAE3D00BE8CB3 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = "<group>"; };
+		6B7DDF242C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = previewVideoLandscapeTopMoreView.h; sourceTree = "<group>"; };
+		6B7DDF252C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = previewVideoLandscapeTopMoreView.m; sourceTree = "<group>"; };
 		6B7E041F2C3E5A97004B4948 /* customDownloadCacheManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = customDownloadCacheManager.h; sourceTree = "<group>"; };
 		6B7E04202C3E5A97004B4948 /* customDownloadCacheManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = customDownloadCacheManager.m; sourceTree = "<group>"; };
 		6B7E04212C3E5A97004B4948 /* customDownloadManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = customDownloadManager.h; sourceTree = "<group>"; };
@@ -2774,6 +2786,10 @@
 				6B7E04422C3EA65A004B4948 /* previewLandscapeTopView.m */,
 				6B42A20F2C40DC3D000555BB /* previewLandscapeTopMoreView.h */,
 				6B42A2102C40DC3D000555BB /* previewLandscapeTopMoreView.m */,
+				6B42A2212C41285C000555BB /* previewVideoPortraitTopMoreView.h */,
+				6B42A2222C41285C000555BB /* previewVideoPortraitTopMoreView.m */,
+				6B7DDF242C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.h */,
+				6B7DDF252C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.m */,
 			);
 			path = view;
 			sourceTree = "<group>";
@@ -3653,6 +3669,7 @@
 				6B2170912B15BAE700656670 /* privacyModeViewController.h in Headers */,
 				6B2C1E5C2C070ADE00FDCF82 /* ZFFloatView.h in Headers */,
 				6B1FBD3A2B467A8000926382 /* backupsFilerecordTableView.h in Headers */,
+				6B7DDF262C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.h in Headers */,
 				6B2C1E782C070ADE00FDCF82 /* ZFLandscapeWindow.h in Headers */,
 				6BF0F3D02AD391D8000AA133 /* connectDeviceManager.h in Headers */,
 				6B2C1E982C070ADE00FDCF82 /* ZFPlayerNotification.h in Headers */,
@@ -3815,6 +3832,7 @@
 				18F9CAFF2ABD3643003FF71A /* ModifyPWDSecondViewController.h in Headers */,
 				6BF52CA12AD7C2F600A617DB /* inputPWDViewController.h in Headers */,
 				6B7EA7B62BF74BDB002D5CC2 /* shareBySecretView.h in Headers */,
+				6B42A2232C41285C000555BB /* previewVideoPortraitTopMoreView.h in Headers */,
 				6BF52C982AD5546500A617DB /* WHPingTester.h in Headers */,
 				6B6D42EC2C290A06006CAE3A /* cloudPhoneSetView.h in Headers */,
 				18FCE5392AD1351B0020F623 /* PlayerViewController.h in Headers */,
@@ -3901,6 +3919,7 @@
 				6BD506BF2B9576A4006E7CB0 /* privacyModeViewController.h in Headers */,
 				6B2C1E5D2C070ADE00FDCF82 /* ZFFloatView.h in Headers */,
 				6BD506C02B9576A4006E7CB0 /* backupsFilerecordTableView.h in Headers */,
+				6B7DDF282C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.h in Headers */,
 				6B2C1E792C070ADE00FDCF82 /* ZFLandscapeWindow.h in Headers */,
 				6BD506C12B9576A4006E7CB0 /* connectDeviceManager.h in Headers */,
 				6B2C1E992C070ADE00FDCF82 /* ZFPlayerNotification.h in Headers */,
@@ -4063,6 +4082,7 @@
 				6BD507082B9576A4006E7CB0 /* ModifyPWDSecondViewController.h in Headers */,
 				6BD507092B9576A4006E7CB0 /* inputPWDViewController.h in Headers */,
 				6B7EA7B82BF74BDB002D5CC2 /* shareBySecretView.h in Headers */,
+				6B42A2252C41285C000555BB /* previewVideoPortraitTopMoreView.h in Headers */,
 				6BD5070A2B9576A4006E7CB0 /* WHPingTester.h in Headers */,
 				6B6D42EE2C290A06006CAE3A /* cloudPhoneSetView.h in Headers */,
 				6BD5070B2B9576A4006E7CB0 /* PlayerViewController.h in Headers */,
@@ -4456,6 +4476,7 @@
 				6B2C1E232C070ADE00FDCF82 /* UIImageView+ZFCache.m in Sources */,
 				6BD507162B9576A4006E7CB0 /* diskListTableView.m in Sources */,
 				6B8661D92BBA53B600B19846 /* noticeModel.m in Sources */,
+				6B42A2262C41285C000555BB /* previewVideoPortraitTopMoreView.m in Sources */,
 				6B7EA7AD2BF72D3B002D5CC2 /* queryShareModel.m in Sources */,
 				6B8A5AE22C3BCC0E00E40B19 /* lastFileModel.m in Sources */,
 				6B2C1E932C070ADE00FDCF82 /* ZFPlayerLogManager.m in Sources */,
@@ -4567,6 +4588,7 @@
 				6B2C1EA72C070ADE00FDCF82 /* ZFPresentTransition.m in Sources */,
 				6BD507512B9576A4006E7CB0 /* TZAssetModel+imageData.m in Sources */,
 				6BD507522B9576A4006E7CB0 /* diskListTableCell.m in Sources */,
+				6B7DDF292C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.m in Sources */,
 				6BD507532B9576A4006E7CB0 /* HWBookmarkViewController.m in Sources */,
 				6B2C1E832C070ADE00FDCF82 /* ZFPersentInteractiveTransition.m in Sources */,
 				6BD507542B9576A4006E7CB0 /* AFURLRequestSerialization.m in Sources */,
@@ -4786,6 +4808,7 @@
 				6B2C1E222C070ADE00FDCF82 /* UIImageView+ZFCache.m in Sources */,
 				6B45C5052B5F9CEC007E6911 /* diskListTableView.m in Sources */,
 				6B8661D62BBA53B600B19846 /* noticeModel.m in Sources */,
+				6B42A2242C41285C000555BB /* previewVideoPortraitTopMoreView.m in Sources */,
 				6B7EA7AB2BF72D3B002D5CC2 /* queryShareModel.m in Sources */,
 				6B8A5AE12C3BCC0E00E40B19 /* lastFileModel.m in Sources */,
 				6B2C1E922C070ADE00FDCF82 /* ZFPlayerLogManager.m in Sources */,
@@ -4897,6 +4920,7 @@
 				6B2C1EA62C070ADE00FDCF82 /* ZFPresentTransition.m in Sources */,
 				6B0582792AFF7C6D00D37290 /* TZAssetModel+imageData.m in Sources */,
 				6B45C5092B5FA2DD007E6911 /* diskListTableCell.m in Sources */,
+				6B7DDF272C421DA900EBDFDD /* previewVideoLandscapeTopMoreView.m in Sources */,
 				A031DD6827EC195400909527 /* HWBookmarkViewController.m in Sources */,
 				6B2C1E822C070ADE00FDCF82 /* ZFPersentInteractiveTransition.m in Sources */,
 				183AE6572A8A2CF000B11CB0 /* AFURLRequestSerialization.m in Sources */,

+ 5 - 0
创维盒子/双子星云手机/Class/Set/previewFile/previewImageOrVideoViewController.m

@@ -1002,6 +1002,11 @@
                 videoPlayByAVPlayerViewController *vc = [videoPlayByAVPlayerViewController new];
                 vc.VideoDataMode = dataModel;
                 [self.navigationController pushViewController:vc animated:YES];
+                
+                KWeakSelf
+                vc.didNeedToRegetDataFun = ^{
+                    [weakSelf getFileListFun];
+                };
             }
         }
         

+ 1 - 0
创维盒子/双子星云手机/Class/Set/previewFile/videoPlayByAVPlayerViewController.h

@@ -14,6 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
 //@property(nonatomic,strong) NASFilePicDataArrModel *VideoDataMode;
 @property(nonatomic,strong) NASFileAndFolderDataModel *VideoDataMode;
 
+@property (nonatomic,copy) void (^didNeedToRegetDataFun)(void);
 @end
 
 NS_ASSUME_NONNULL_END

+ 243 - 10
创维盒子/双子星云手机/Class/Set/previewFile/videoPlayByAVPlayerViewController.m

@@ -6,6 +6,11 @@
 //
 
 #import "videoPlayByAVPlayerViewController.h"
+#import "previewVideoPortraitTopMoreView.h"
+#import "editShareView.h"
+#import "uploadFileRecordViewController.h"
+#import "previewVideoLandscapeTopMoreView.h"
+#import "UIInterface+HXRotation.h"
 
 //#import <ZFPlayer/ZFAVPlayerManager.h>
 //#import <ZFPlayer/ZFIJKPlayerManager.h>
@@ -28,8 +33,16 @@
 
 @property (nonatomic, strong)UIView *bgView;
 @property (nonatomic, strong)UIButton *portraitBackBtn;
+
 @property (nonatomic, strong)UIButton *portraitToLandScapeBtn;
+@property (nonatomic, strong)UIButton *portraitTopMoreBtn;
+@property (nonatomic, strong)previewVideoPortraitTopMoreView *previewVideoPortraitTopMoreV;
+
+
 @property (nonatomic, strong)UIButton *landScapeToPortraitBtn;
+@property (nonatomic, strong)UIButton *landScapeTopMoreBtn;
+@property (nonatomic, strong)previewVideoLandscapeTopMoreView *previewVideoLandscapeTopMoreV;
+
 @end
 
 @implementation videoPlayByAVPlayerViewController
@@ -179,7 +192,10 @@
     _controlView.portraitControlView.fullScreenBtn.hidden = YES;
     //totalTimeLabel slider
     
-    [_controlView.portraitControlView.topToolView addSubview:self.portraitBackBtn];
+    //隐藏 缓存条
+//    _controlView.bottomPgrogress.hidden = YES;
+//    _controlView.fastProgressView.hidden = YES;
+    
     
     UILabel *titleLab = _controlView.portraitControlView.titleLabel;
     titleLab.textAlignment = NSTextAlignmentCenter;
@@ -203,14 +219,24 @@
         make.top.mas_equalTo(titleLabFrame.origin.y);
     }];
     
+    [_controlView.portraitControlView.topToolView addSubview:self.portraitTopMoreBtn];
+    [self.portraitTopMoreBtn mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.right.mas_equalTo(-15);
+        make.width.mas_equalTo(28);
+        make.height.mas_equalTo(28);
+        make.top.mas_equalTo(titleLabFrame.origin.y);
+    }];
+      
     [_controlView.portraitControlView.topToolView addSubview:self.portraitToLandScapeBtn];
     [self.portraitToLandScapeBtn mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(-15);
+        make.right.equalTo(self.portraitTopMoreBtn.mas_left).offset(-10);
         make.width.mas_equalTo(28);
         make.height.mas_equalTo(28);
         make.top.mas_equalTo(titleLabFrame.origin.y);
     }];
-        
+
+    
+    /*************************************************************************/
     
     //横屏
     //_controlView.landScapeControlView.fullScreenBtn.hidden = YES;
@@ -219,21 +245,34 @@
     titleLabInlandScape.textAlignment = NSTextAlignmentCenter;
     titleLabInlandScape.lineBreakMode = NSLineBreakByTruncatingMiddle;
     CGRect titleLabFrameInlandScape = titleLabInlandScape.frame;
+    //titleLabInlandScape.backgroundColor = [UIColor greenColor];
     
     [titleLabInlandScape mas_remakeConstraints:^(MASConstraintMaker *make) {
-        make.left.mas_equalTo(45);
-        make.right.mas_equalTo(-45);
-        make.height.mas_equalTo(titleLabFrameInlandScape.size.height);
-        make.top.mas_equalTo(titleLabFrameInlandScape.origin.y);
+        make.left.equalTo(_controlView.landScapeControlView.backBtn.mas_right).offset(10);
+        //make.right.mas_equalTo(-45);
+        make.right.mas_equalTo(-25 -90);
+        //make.height.mas_equalTo(titleLabFrameInlandScape.size.height);
+        make.top.equalTo(_controlView.landScapeControlView.backBtn.mas_top).offset(0);
+        make.bottom.equalTo(_controlView.landScapeControlView.backBtn.mas_bottom).offset(0);
     }];
     
+    [_controlView.landScapeControlView.topToolView addSubview:self.landScapeTopMoreBtn];
+    [self.landScapeTopMoreBtn mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.right.mas_equalTo(-15 - 20);
+        make.width.mas_equalTo(28);
+        make.height.mas_equalTo(28);
+        //make.top.mas_equalTo(titleLabFrame.origin.y);
+        make.centerY.equalTo(_controlView.landScapeControlView.backBtn.mas_centerY).offset(0);
+    }];
     
     [_controlView.landScapeControlView.topToolView addSubview:self.landScapeToPortraitBtn];
     [self.landScapeToPortraitBtn mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(-15);
+        //make.right.mas_equalTo(-15);
+        make.right.equalTo(self.landScapeTopMoreBtn.mas_left).offset(-20);
         make.width.mas_equalTo(28);
         make.height.mas_equalTo(28);
-        make.top.mas_equalTo(titleLabFrame.origin.y);
+        //make.top.mas_equalTo(titleLabFrame.origin.y);
+        make.centerY.equalTo(_controlView.landScapeControlView.backBtn.mas_centerY).offset(0);
     }];
 }
 
@@ -256,6 +295,16 @@
     return _portraitToLandScapeBtn;
 }
 
+- (UIButton*)portraitTopMoreBtn{
+    if (!_portraitTopMoreBtn) {
+        _portraitTopMoreBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+        [_portraitTopMoreBtn setImage:[UIImage imageNamed:@"nas_preview_more_white"] forState:UIControlStateNormal];
+        [_portraitTopMoreBtn addTarget:self action:@selector(didClickMoreButFun:) forControlEvents:UIControlEventTouchUpInside];
+        //_portraitTopMoreBtn.backgroundColor = [UIColor greenColor];
+    }
+    return _portraitTopMoreBtn;
+}
+
 - (UIButton *)landScapeToPortraitBtn {
     if (!_landScapeToPortraitBtn) {
         _landScapeToPortraitBtn = [UIButton buttonWithType:UIButtonTypeCustom];
@@ -266,6 +315,16 @@
     return _landScapeToPortraitBtn;
 }
 
+- (UIButton*)landScapeTopMoreBtn{
+    if (!_landScapeTopMoreBtn) {
+        _landScapeTopMoreBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+        [_landScapeTopMoreBtn setImage:[UIImage imageNamed:@"nas_preview_more_white"] forState:UIControlStateNormal];
+        [_landScapeTopMoreBtn addTarget:self action:@selector(didClickMoreButFun:) forControlEvents:UIControlEventTouchUpInside];
+        //_portraitTopMoreBtn.backgroundColor = [UIColor greenColor];
+    }
+    return _landScapeTopMoreBtn;
+}
+
 #pragma mark 点击返回键
 - (void)didClickBackBtnFun
 {
@@ -285,7 +344,65 @@
     }
 }
 
-#pragma mark 视频可以播放
+#pragma mark 点击顶部更多 获取 分享 下载 更多
+- (void)didClickMoreButFun:(UIButton*)but
+{
+    if(but ==_portraitTopMoreBtn){
+        _previewVideoPortraitTopMoreV = [[previewVideoPortraitTopMoreView alloc] init];
+        [self.view addSubview:_previewVideoPortraitTopMoreV];
+        
+        [_previewVideoPortraitTopMoreV mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.mas_equalTo(0);
+            make.right.mas_equalTo(0);
+            make.bottom.mas_equalTo(0);
+            make.top.mas_equalTo(0);
+        }];
+        
+        KWeakSelf
+        _previewVideoPortraitTopMoreV.didClickButtonFun = ^(NSInteger tag) {
+            if(tag == 10){
+                [weakSelf gotoShareViewFun:NO];
+            }
+            else if (tag == 11){
+                [weakSelf gotoDownLoadFileFun:NO];
+            }
+            else if (tag == 12){
+                [weakSelf delFileListFun];
+            }
+        };
+    }
+    else{
+        
+        _previewVideoLandscapeTopMoreV = [[previewVideoLandscapeTopMoreView alloc] init];
+        [_controlView.landScapeControlView addSubview:_previewVideoLandscapeTopMoreV];
+        
+        [_previewVideoLandscapeTopMoreV mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.mas_equalTo(0);
+            make.right.mas_equalTo(0);
+            make.bottom.mas_equalTo(0);
+            make.top.mas_equalTo(0);
+        }];
+        
+        KWeakSelf
+        _previewVideoLandscapeTopMoreV.didClickButtonFun = ^(NSInteger tag) {
+            if(tag == 10){
+                [weakSelf gotoShareViewFun:YES];
+            }
+            else if (tag == 11){
+                [weakSelf gotoDownLoadFileFun:YES];
+            }
+            else if (tag == 12){
+                [weakSelf delFileListFun];
+            }
+        };
+        
+        
+    }
+    
+}
+
+
+#pragma mark 视频可以播放 加入最近文件
 - (void)videoPlayerDidFun{
     
     NASFileAndFolderDataModel *dataModel = _VideoDataMode;
@@ -303,4 +420,120 @@
 
     
 }
+
+#pragma mark 用户点击分享
+- (void)gotoShareViewFun:(BOOL)isLandscapeType
+{
+    if(!_VideoDataMode){
+        return;
+    }
+    
+    editShareView *editShareV = [[editShareView alloc] init];
+    editShareV.didSelectListArr = [NSMutableArray arrayWithArray:@[_VideoDataMode]];
+    editShareV.shareFileType = @"3";
+    if(isLandscapeType){
+        [_controlView.landScapeControlView addSubview:editShareV];
+    }
+    else{
+        [self.view addSubview:editShareV];
+    }
+    
+    
+    [editShareV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.bottom.mas_equalTo(0);
+        make.top.mas_equalTo(0);
+    }];
+}
+
+#pragma mark 删除图片
+- (void)showDeleteAlearViewFun
+{
+    NSString *titleStr = NSLocalizedString(@"delete_file_title_msg",nil);
+    NSString *tipStr = NSLocalizedString(@"delete_file_tip_msg",nil);
+
+    KWeakSelf
+    ComontAlretViewController *curAlretVC= [[ComontAlretViewController alloc] initWithTiTle:titleStr
+                                                                                      msg:tipStr
+                                                                                 imageStr:nil
+                                                                              cancelTitle:NSLocalizedString(@"other_cancel",nil)
+                                                                                  okTitle:NSLocalizedString(@"other_confirm",nil) isOkBtnHighlight:YES
+                                                                               didClickOk:^{
+        
+        [weakSelf delFileListFun];
+     } didClickCancel:^{
+         
+     }];
+    
+    curAlretVC.modalPresentationStyle = UIModalPresentationCustom;
+     
+     [self presentViewController:curAlretVC animated:YES completion:^{
+         curAlretVC.view.superview.backgroundColor = [UIColor clearColor];
+     }];
+}
+
+
+#pragma mark 删除文件数据
+- (void)delFileListFun
+{
+    NSMutableDictionary*paraDict = [NSMutableDictionary new];
+    
+    if(_VideoDataMode){
+        NSArray *pathArr = @[_VideoDataMode.path];
+        [paraDict setValue:pathArr forKey:@"path"];
+    }
+    
+    [self showNewIndicatorWithCanBack:YES canTouch:NO];
+    
+    //NSString*code = [[NSString alloc] initWithFormat:@"delFile?path=%@",paraDict[@"path"]]; //delFile?path=[/storage/emulated/0/Download/IMG_6464.HEIC]
+    KWeakSelf //@"delFile"
+    [[netWorkManager shareInstance] cloudPhonePostCallBackCode:@"delFile" Parameters:paraDict success:^(id  _Nonnull responseObject) {
+        [weakSelf removeNewIndicator];
+        SuperModel *model = [[SuperModel alloc] initWithDictionary:responseObject error:nil];
+        if(model && model.status == 0){
+            [[iToast makeText:NSLocalizedString(@"delete_file_suc_msg",nil)] show];
+            
+            if(weakSelf.didNeedToRegetDataFun){
+                weakSelf.didNeedToRegetDataFun();
+            }
+            
+            [weakSelf.navigationController popViewControllerAnimated:YES];
+        }
+        else{
+            
+        }
+    } failure:^(NSError * _Nonnull error) {
+        [weakSelf removeNewIndicator];
+    }];
+}
+
+#pragma mark 去下载文件
+- (void)gotoDownLoadFileFun:(BOOL)isLandscapeType
+{
+    if(_VideoDataMode){
+       
+        if(isLandscapeType){
+            //切换到竖屏
+            //[self hx_rotateToInterfaceOrientation:UIInterfaceOrientationPortrait];
+            [self.player rotateToOrientation:UIInterfaceOrientationPortrait animated:YES completion:nil];
+        }
+        
+        couldPhoneFileModel* fileModel =  [couldPhoneFileModel new];
+        fileModel.fileType = @"video";
+        fileModel.path = _VideoDataMode.path;
+        fileModel.name = _VideoDataMode.name;
+        fileModel.length = _VideoDataMode.size;
+        
+        NSMutableArray *arr = [NSMutableArray new];
+        [arr addObject:fileModel];
+        
+        uploadFileRecordViewController *vc = [uploadFileRecordViewController new];
+        [self.navigationController pushViewController:vc animated:YES];
+        vc.isDownloadingType = YES;
+        [vc gotoDownloadFile:arr];
+    }
+}
+
+
 @end

+ 16 - 0
创维盒子/双子星云手机/Class/Set/previewFile/view/previewVideoLandscapeTopMoreView.h

@@ -0,0 +1,16 @@
+//
+//  previewVideoLandscapeTopMoreView.h
+//  双子星云手机
+//
+//  Created by xd h on 2024/7/13.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface previewVideoLandscapeTopMoreView : UIView
+@property (nonatomic,copy) void (^didClickButtonFun)(NSInteger tag);
+@end
+
+NS_ASSUME_NONNULL_END

+ 147 - 0
创维盒子/双子星云手机/Class/Set/previewFile/view/previewVideoLandscapeTopMoreView.m

@@ -0,0 +1,147 @@
+//
+//  previewVideoLandscapeTopMoreView.m
+//  双子星云手机
+//
+//  Created by xd h on 2024/7/13.
+//
+
+#import "previewVideoLandscapeTopMoreView.h"
+
+@implementation previewVideoLandscapeTopMoreView
+
+- (id)initWithFrame:(CGRect)frame{
+    self = [super initWithFrame:frame];
+    
+    self.backgroundColor = [UIColor hwColor:@"#000000" alpha:0.1];
+    [self drawAnyView];
+    
+    return self;
+}
+
+-(void)drawAnyView
+{
+    //大按钮响应
+    UIButton *bigRightButton = [[UIButton alloc] init];
+    bigRightButton.tag = 1;
+    [bigRightButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
+    [self addSubview:bigRightButton];
+    //bigRightButton.backgroundColor= [UIColor greenColor];
+    
+    [bigRightButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(0);
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.bottom.mas_equalTo(0);
+    }];
+    
+    UIView *whiteBgView = [[UIView alloc] init];
+    whiteBgView.backgroundColor = [UIColor hwColor:@"#1E1E1E" alpha:0.9];
+    [self addSubview:whiteBgView];
+    whiteBgView.layer.cornerRadius = 8;
+    whiteBgView.layer.masksToBounds = YES;
+    
+    [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(0);
+        make.right.mas_equalTo(10);
+        make.width.mas_equalTo(310+10);
+        make.bottom.mas_equalTo(0);
+        //make.height.mas_equalTo(150);
+    }];
+    
+    
+    UILabel *moreLabel =[[UILabel alloc] init];
+    moreLabel.text = NSLocalizedString(@"NAS_preview_video_more_tip",nil);
+    moreLabel.textColor = [UIColor whiteColor];
+    moreLabel.font = [UIFont boldSystemFontOfSize:14.0];
+    [whiteBgView addSubview:moreLabel];
+    
+    [moreLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(15);
+        make.right.mas_equalTo(0);
+        make.height.mas_equalTo(20);
+        make.top.mas_equalTo(20);
+    }];
+    
+    
+    NSArray *butImageArr = @[@"nas_preview_share_white",@"edit_download_white_icon",@"edit_del_white_icon"];
+    
+    NSArray *butTextArr = @[NSLocalizedString(@"common_edit_share",nil),
+                            NSLocalizedString(@"my_set_no_File_download",nil),
+                            NSLocalizedString(@"File_upload_Record_delete",nil)];
+    
+
+    CGFloat butHeight = 40.0;
+    CGFloat butTopSpace = 15.0;
+    
+    for (int i=0; i<butImageArr.count; i++) {
+        
+        UIButton *but = [[UIButton alloc] init];
+        but.tag = 10+i;
+        [but addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
+        //NSString *butTitle = [[NSString alloc] initWithFormat:@"   %@",butTextArr[i]];
+        //[but setImage:[UIImage imageNamed:butImageArr[i]] forState:UIControlStateNormal];
+        //[but setTitle:butTitle forState:UIControlStateNormal];
+        //[but setTitleColor:[UIColor hwColor:@"#0A132B"] forState:UIControlStateNormal];
+        //[but setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
+        //but.titleLabel.font = [UIFont systemFontOfSize:14.0];
+        
+        but.backgroundColor = [UIColor hwColor:@"#414141" alpha:1.0];
+        but.layer.cornerRadius = 8;
+        [whiteBgView addSubview:but];
+        
+        [but mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.mas_equalTo(15);
+            make.right.mas_equalTo(-32 - 10);
+            make.height.mas_equalTo(butHeight);
+            make.top.mas_equalTo(60 + (butHeight+butTopSpace)*i);
+        }];
+        
+        UIImageView *imageV = [UIImageView new];
+        imageV.image = [UIImage imageNamed:butImageArr[i]];
+        [but addSubview:imageV];
+        
+        [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.mas_equalTo(12);
+            make.width.mas_equalTo(24);
+            make.height.mas_equalTo(24);
+            make.centerY.mas_equalTo(but.mas_centerY);
+        }];
+        
+        UILabel *textLabel =[[UILabel alloc] init];
+        textLabel.text = butTextArr[i];
+        textLabel.textColor = [UIColor whiteColor];
+        textLabel.font = [UIFont systemFontOfSize:12.0];
+        [but addSubview:textLabel];
+        
+        [textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.equalTo(imageV.mas_right).offset(8);
+            make.right.mas_equalTo(0);
+            make.height.mas_equalTo(20);
+            make.centerY.mas_equalTo(but.mas_centerY);
+        }];
+        
+    }
+}
+
+#pragma mark 按钮事件
+- (void)didClickButtonFun:(UIButton*)but
+{
+    NSInteger tag = but.tag;
+    HLog(@"%ld",tag);
+    
+    [self removeFun];
+    
+    if(tag == 1){
+        return;
+    }
+    
+    if(_didClickButtonFun){
+        _didClickButtonFun(tag);
+    }
+}
+
+- (void)removeFun
+{
+    [self removeFromSuperview];
+}
+@end

+ 16 - 0
创维盒子/双子星云手机/Class/Set/previewFile/view/previewVideoPortraitTopMoreView.h

@@ -0,0 +1,16 @@
+//
+//  previewVideoPortraitTopMoreView.h
+//  双子星云手机
+//
+//  Created by xd h on 2024/7/12.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface previewVideoPortraitTopMoreView : UIView
+@property (nonatomic,copy) void (^didClickButtonFun)(NSInteger tag);
+@end
+
+NS_ASSUME_NONNULL_END

+ 118 - 0
创维盒子/双子星云手机/Class/Set/previewFile/view/previewVideoPortraitTopMoreView.m

@@ -0,0 +1,118 @@
+//
+//  previewVideoPortraitTopMoreView.m
+//  双子星云手机
+//
+//  Created by xd h on 2024/7/12.
+//
+
+#import "previewVideoPortraitTopMoreView.h"
+
+@implementation previewVideoPortraitTopMoreView
+
+- (id)initWithFrame:(CGRect)frame{
+    self = [super initWithFrame:frame];
+    
+    self.backgroundColor = [UIColor hwColor:@"#000000" alpha:0.1];
+    [self drawAnyView];
+    
+    return self;
+}
+
+-(void)drawAnyView
+{
+    //大按钮响应
+    UIButton *bigRightButton = [[UIButton alloc] init];
+    bigRightButton.tag = 1;
+    [bigRightButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
+    [self addSubview:bigRightButton];
+    //bigRightButton.backgroundColor= [UIColor greenColor];
+    
+    [bigRightButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(0);
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.bottom.mas_equalTo(0);
+    }];
+    
+    UIView *whiteBgView = [[UIView alloc] init];
+    whiteBgView.backgroundColor = [UIColor hwColor:@"#333333"];
+    [self addSubview:whiteBgView];
+    whiteBgView.layer.cornerRadius = 8;
+    whiteBgView.layer.masksToBounds = YES;
+    
+    [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(65);
+        make.right.mas_equalTo(-16);
+        make.width.mas_equalTo(112);
+        make.height.mas_equalTo(170);
+        //make.height.mas_equalTo(150);
+    }];
+    
+    NSArray *butImageArr = @[@"nas_preview_share_white",@"edit_download_white_icon",@"edit_del_white_icon"];
+    
+    NSArray *butTextArr = @[NSLocalizedString(@"common_edit_share",nil),
+                            NSLocalizedString(@"my_set_no_File_download",nil),
+                            NSLocalizedString(@"File_upload_Record_delete",nil)];
+    
+
+    CGFloat butHeight = 50.0;
+   
+    
+    for (int i=0; i<butImageArr.count; i++) {
+        
+        UIButton *but = [[UIButton alloc] init];
+        but.tag = 10+i;
+        [but addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
+        NSString *butTitle = [[NSString alloc] initWithFormat:@"   %@",butTextArr[i]];
+        [but setImage:[UIImage imageNamed:butImageArr[i]] forState:UIControlStateNormal];
+        [but setTitle:butTitle forState:UIControlStateNormal];
+        //[but setTitleColor:[UIColor hwColor:@"#0A132B"] forState:UIControlStateNormal];
+        [but setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
+        but.titleLabel.font = [UIFont systemFontOfSize:14.0];
+        [whiteBgView addSubview:but];
+        
+        [but mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.mas_equalTo(0);
+            make.right.mas_equalTo(0);
+            make.height.mas_equalTo(butHeight);
+            make.top.mas_equalTo(10 + butHeight*i);
+        }];
+        
+//        if(i != butImageArr.count -1){
+//            UIView *lineV = [UIView new];
+//            lineV.backgroundColor = [UIColor hwColor:@"#F3F5F9"];
+//            [whiteBgView addSubview:lineV];
+//
+//            [lineV mas_makeConstraints:^(MASConstraintMaker *make) {
+//                make.left.mas_equalTo(8);
+//                make.right.mas_equalTo(-8);
+//                make.height.mas_equalTo(0.5);
+//                make.top.mas_equalTo(butHeight*(i+1));
+//            }];
+//        }
+        
+    }
+}
+
+#pragma mark 按钮事件
+- (void)didClickButtonFun:(UIButton*)but
+{
+    NSInteger tag = but.tag;
+    HLog(@"%ld",tag);
+    
+    [self removeFun];
+    
+    if(tag == 1){
+        return;
+    }
+    
+    if(_didClickButtonFun){
+        _didClickButtonFun(tag);
+    }
+}
+
+- (void)removeFun
+{
+    [self removeFromSuperview];
+}
+@end

+ 4 - 0
创维盒子/双子星云手机/NAS/NasPreviewVideoViewController.m

@@ -376,6 +376,10 @@
         vc.VideoDataMode = dataModel;
         [self.navigationController pushViewController:vc animated:YES];
         
+        KWeakSelf
+        vc.didNeedToRegetDataFun = ^{
+            [weakSelf getFileListFun];
+        };
     }
 }
 

+ 5 - 0
创维盒子/双子星云手机/NAS/nasLastFileViewController.m

@@ -204,6 +204,11 @@
             videoPlayByAVPlayerViewController *vc = [videoPlayByAVPlayerViewController new];
             vc.VideoDataMode = (NASFileAndFolderDataModel*)dataModel;
             [self.navigationController pushViewController:vc animated:YES];
+            
+            KWeakSelf
+            vc.didNeedToRegetDataFun = ^{
+                [weakSelf getLastFileDataFun];
+            };
         }
         else if([dataModel.type isEqualToString:@"audio"]){
             

+ 1 - 0
创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

@@ -544,6 +544,7 @@
 "NAS_last_file_not_data_tip"   = "暂无最近使用记录";
 "NAS_last_file_del_tip"   = "是否删除所选历史记录?";
 "NAS_last_file_del_cloudFile_tip"   = "同时删除源文件";
+"NAS_preview_video_more_tip"   = "更多";
 "cloudPhone_enter_tip"   = "进入云机";
 "cloudPhone_upload_app"   = "应用上传";
 "cloudPhone_nav_show_tip"   = "导航栏";