Explorar o código

1.视频下载格式限制:仅支持MP4、MOV、3GP、M4V

huangxiaodong hai 1 ano
pai
achega
b91eb2f441

+ 25 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/downLoadFile/view/downLoadPreViewCell.m

@@ -126,7 +126,31 @@
     //titleLabel2.text = @"2023/10/22";
 }
 
+//ios端:
+//1、需求说明:解决除MP4   MOV   3GP   M4V 总计4种格式外,其他格式下载失败的问题;
+//2、交互说明:下载列表勾选文件中含有其他格式,toast提示“IOS系统仅支持MP4、MOV、3GP、M4V 的视频格式,其他格式无法下载”。点击下载按钮,过滤其他格式文件,仅下载MP4、MOV、3GP、M4V 的视频格式文件;
+
 - (void)maskSwitchPressed:(UIButton *)maskSwitch{
+    
+    NSString*name = [_curFileModel.name lowercaseString];
+    NSArray *nameArr = [name componentsSeparatedByString:@"."];
+    if(nameArr.count >0){
+        BOOL canDownLoadType = NO;
+        
+        NSString *lastName = nameArr.lastObject;
+        if([lastName isEqualToString:@"mp4"]
+           ||[lastName isEqualToString:@"mov"]
+           ||[lastName isEqualToString:@"3gp"]
+           ||[lastName isEqualToString:@"m4v"]){
+            canDownLoadType = YES;
+        }
+        
+        if(!canDownLoadType){
+            [[iToast makeText:NSLocalizedString(@"download_video_disable_state",nil)] show];
+            return;
+        }
+    }
+    
     if(_didClickSwitch){
         _didClickSwitch(maskSwitch.selected);
     }
@@ -134,6 +158,7 @@
 
 - (void)setCurFileModel:(couldPhoneFileModel *)curFileModel
 {
+    _curFileModel = curFileModel;
     mImageView.image = [UIImage imageNamed:@"uploadFile_image"];
     checkButton.selected = curFileModel.isSelectType;
 

+ 4 - 1
创维盒子/双子星云手机/en.lproj/Localizable.strings

@@ -306,7 +306,7 @@
 "player_Tip_ios_no_wifi_Sync"   = "The local parameters have been synchronized.(iOS can't be synchronized.)";
 "input_8_secret_key"   = "Please enter an 8-digit key";
 "image_version_pop_title"   = "New version \n Please experience it first";
-"image_version_pop_tip1"   = "The box device has not been updated to the latest version yet. Please power off and restart to update the box device";
+"image_version_pop_tip1"   = "The box device hasn't been updated to the latest version. Please unplug and plug in the power to update. The cloud machine will be unavailable during the update";
 "image_version_pop_tip2"   = "Do not operate during device update, estimated to take 15 minutes";
 "tv_p2p_ing"   = "Casting";
 "my_set_about_version_tap_newVersion"   = "Image version to be updated";
@@ -405,3 +405,6 @@
 "backups_need_read_msg" = "1. When backing up files, the system will request access to your photo library. To ensure a smooth experience, it is recommended to choose \"Allow Full Access\" to avoid frequent pop-up interruptions. Permission path: Settings > private-X app > Photos > Full Access
 2. Remember to keep the app running in the foreground while backing up files, as exiting may result in interrupted transfers.
 3. Backing up files may affect the cloud phone operation experience; it is recommended to finish file transfers before using cloud phone operations.";
+"File_Transfer_Disable_tip"   = "This feature is currently unavailable. Please plug and unplug the power to update the device. After restoring power and network connection, it is estimated to take 15 minutes to complete the update, during which cloud services will be unavailable.";
+"check_could_phone_state"   = "Please enter the cloud machine first before proceeding with the operation!";
+"download_video_disable_state"   = "iOS system only supports video formats MP4, MOV, 3GP, M4V for download. Other formats are not supported.";

+ 4 - 1
创维盒子/双子星云手机/ja.lproj/Localizable.strings

@@ -304,7 +304,7 @@
 "player_Tip_ios_no_wifi_Sync"   = "アプリケーションの設定はバックアップされましたが、iOSではまだこの機能はサポートされていません";
 "input_8_secret_key"   = "8ビットキーを入力してください";
 "image_version_pop_title"   = "新しいバージョン \nまず体験してください";
-"image_version_pop_tip1"   = "ボックスデバイスはまだ最新バージョンに更新されていません。電源を切って再起動してボックスデバイスの更新を行ってください。";
+"image_version_pop_tip1"   = "盒子デバイスは最新バージョンに更新されていません。電源を抜粋して差し込んで更新してください。更新中はクラウドマシンは利用できません";
 "image_version_pop_tip2"   = "設備更新中は操作しないでください、15分かかる予定です";
 "tv_p2p_ing"   = "ミラーリング中";
 "my_set_about_version_tap_newVersion"   = "更新されるミラーバージョン";
@@ -404,3 +404,6 @@
 "backups_need_read_msg" = "1. ファイルのバックアップ時、システムは写真ライブラリへのアクセス権を要求します。スムーズな体験のためには、「完全アクセスを許可」を選択して頻繁なポップアップを回避することをお勧めします。 権限パス:設定 > private-Xアプリ > 写真 > 完全アクセス
 2. ファイルをバックアップする際は、アプリを前面で実行しておいてください。終了すると転送が中断される可能性があります。
 3. ファイルのバックアップはクラウドフォンの操作体験に影響を与える場合があります。クラウドフォンの操作を行う前にファイル転送を完了することをお勧めします。";
+"File_Transfer_Disable_tip"   = "この機能は現在利用できません。デバイスを更新するために電源を抜き差ししてください。電源とネットワークを復旧させた後、更新には15分ほどかかる見込みであり、更新中はクラウドサービスを利用できません。";
+"check_could_phone_state"   = "先にクラウド機に入ってから操作してください!";
+"download_video_disable_state"   = "iOSシステムは、MP4、MOV、3GP、M4Vのビデオ形式のみをサポートしており、他の形式はダウンロードできません";

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

@@ -303,7 +303,7 @@
 "player_Tip_ios_no_wifi_Sync"   = "本机参数已同步完成,IOS无法同步wifi";
 "input_8_secret_key"   = "请输入8位密钥";
 "image_version_pop_title"   = "新版本\n请先体验";
-"image_version_pop_tip1"   = "盒子设备目前还未更新到最新版本 \n 请断电重启进行盒子设备更新";
+"image_version_pop_tip1"   = "盒子设备目前还未更新到最新版本 \n 请拔插盒子电源更新设备。更新期间将无法使用云机";
 "image_version_pop_tip2"   = "设备更新期间请勿操作,预计需15分钟";
 "tv_p2p_ing"   = "正在投屏中";
 "my_set_about_version_tap_newVersion"   = "待更新镜像版本";
@@ -406,3 +406,5 @@
 3、备份文件时,可能会影响云机操作体验,建议先完成文件传输再进行云机操作;";
 "File_Transfer_Disable_tip"   = "此功能暂时无法使用,请插拔电源更新设备。恢复电源和网络后,预计需要15分钟完成更新,更新期间将无法使用云机。";
 "check_could_phone_state"   = "请先进入云机后再进行操作!";
+"download_video_disable_state"   = "IOS系统仅支持MP4、MOV、3GP、M4V 的视频格式,其他格式无法下载";
+

+ 4 - 2
创维盒子/双子星云手机/zh-Hant.lproj/Localizable.strings

@@ -305,7 +305,7 @@
 "player_Tip_ios_no_wifi_Sync"   = "本機參數已同步完成,IOS無法同步wifi";
 "input_8_secret_key"   = "請輸入8位密鑰";
 "image_version_pop_title"   = "新版本\n請先體驗";
-"image_version_pop_tip1"   = "盒子設備現時還未更新到最新版本\n請斷電重啓進行盒子設備更新";
+"image_version_pop_tip1"   = "盒子設備現時還未更新到最新版本\n請拔插盒子電源以更新設備。更新期間將無法使用雲機";
 "image_version_pop_tip2"   = "設備更新期間請勿操作,預計需15分鐘";
 "tv_p2p_ing"   = "正在投屏中";
 "my_set_about_version_tap_newVersion"   = "待更新鏡像版本";
@@ -406,4 +406,6 @@
 權限路徑:設置> private-X應用>照片>完全訪問\n
 2. 備份文件時,請保持APP在前台運行,退出將導致傳輸中斷;
 3. 備份文件時,可能會影響雲機操作體驗,建議先完成文件傳輸再進行雲機操作;";
-"File_Transfer_Disable_tip"   = "此功能暂时无法使用,请插拔电源更新设备。恢复电源和网络后,预计需要15分钟完成更新,更新期间将无法使用云机。";
+"File_Transfer_Disable_tip"   = "此功能暫時無法使用,請插拔電源更新設備。恢復電源和網路後,預計需要15分鐘完成更新,更新期間將無法使用雲端機";
+"check_could_phone_state"   = "請先進入雲機後再進行操作!";
+"download_video_disable_state"   = "iOS 系統僅支持 MP4、MOV、3GP、M4V 的視頻格式,其他格式無法下載。";