|
@@ -922,7 +922,15 @@ extension PQStuckPointPublicController {
|
|
|
}
|
|
|
}
|
|
|
exporter.completion = { [weak self] url in
|
|
|
- BFLog(message: "无水印的视频导出完成: \(String(describing: url)) 生成视频时长为:\(CMTimeGetSeconds(AVAsset(url: (url ?? URL(string: "https://media.w3.org/2010/05/sintel/trailer.mp4")!)).duration))")
|
|
|
+
|
|
|
+ //输出视频时长
|
|
|
+ let outSeconds = CMTimeGetSeconds(AVAsset(url: (url ?? URL(string: "https://media.w3.org/2010/05/sintel/trailer.mp4")!)).duration)
|
|
|
+
|
|
|
+ BFLog(message: "无水印的视频导出完成: \(String(describing: url)) 生成视频时长为:\(outSeconds)")
|
|
|
+ if(outSeconds == 0){
|
|
|
+ cShowHUB(superView: self?.view, msg: "合成失败请重试。")
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
// 导出完成后取消导出
|
|
|
if self?.exporter != nil {
|