|
@@ -22,6 +22,8 @@ public enum ExportError : Int {
|
|
|
case DiskNoSpace = -31006
|
|
|
}
|
|
|
|
|
|
+let testFor = true
|
|
|
+
|
|
|
public class BFRecordExport {
|
|
|
public var progress: ((Float) -> Void)?
|
|
|
public var exportCompletion: ((Error?, URL?) -> Void)?
|
|
@@ -403,9 +405,10 @@ public class BFRecordExport {
|
|
|
let exportEndTime = Date().timeIntervalSince1970
|
|
|
// BFLog(1, message: "视频导出完成: \(String(describing: url)) 生成视频时长为:\(outSeconds) 总用时:\(exportEndTime - tempBeginExport)")
|
|
|
print("生成视频时长为:\(outSeconds) 总用时:\(exportEndTime - tempBeginExport)")
|
|
|
-#if ForTest
|
|
|
- cShowHUB(superView: nil, msg: (outSeconds == 0) ? "合成失败请重试。" : "合成成功,总用时:\(exportEndTime - tempBeginExport)")
|
|
|
-#endif
|
|
|
+ if testFor {
|
|
|
+ cShowHUB(superView: nil, msg: (outSeconds == 0) ? "合成失败请重试。" : "合成成功,总用时:\(exportEndTime - tempBeginExport)")
|
|
|
+ }
|
|
|
+
|
|
|
self?.exportCompletion?(nil, url)
|
|
|
|
|
|
} else {
|