Przeglądaj źródła

1,修改视频导出参数 2,添加 LOG

jsonwang 3 lat temu
rodzic
commit
a22da9f56e

+ 6 - 4
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointEditerController.swift

@@ -744,7 +744,7 @@ extension PQStuckPointEditerController {
             }
 
             for photo in selectedPhotoData! {
-                if photo.asset != nil, photo.asset?.mediaType == .video, photo.locationPath.count <= 0 {
+                if photo.asset != nil, photo.asset?.mediaType == .video{
                     if !isHaveVideo {
                         isHaveVideo = true
                     }
@@ -785,9 +785,11 @@ extension PQStuckPointEditerController {
     /// 处理所有数据完成
     /// - Returns: <#description#>
     func dealWithDataSuccess() {
-//        if !isSynchroMusicInfoSuccess  || !isStuckPointDataSuccess {
-//            return
-//        }
+        
+        BFLog(message: "三组参数:\(isSynchroMusicInfoSuccess)  \(isStuckPointDataSuccess) \(isExportVideosSuccess)")
+        if !isSynchroMusicInfoSuccess  || !isStuckPointDataSuccess || !isExportVideosSuccess {
+            return
+        }
         playeTimeRange = CMTimeRange(start: CMTime(value: CMTimeValue(Int64((stuckPointMusicData?.startTime ?? 0) * 600)), timescale: 600), end: CMTime(value: CMTimeValue(Int64((stuckPointMusicData?.endTime ?? 0) * 600)), timescale: 600))
         createPorjectData()
         settingPlayerView()