Ver código fonte

清理target;修改保存提示逻辑

harry 3 anos atrás
pai
commit
752b0e3bbc

+ 1 - 0
BFFramework/Classes/PQGPUImage/akfilters/Tools/PQCompositionExporter.swift

@@ -299,6 +299,7 @@ public class PQCompositionExporter {
     public func start(playeTimeRange:CMTimeRange = CMTimeRange.init()) {
         input?.completion = { [weak self] in
             self?.output?.finishRecording { [weak self] in
+                self?.input?.removeAllTargets()
                 BFLog(message: "导出视频完成发通知")
                 DispatchQueue.main.async {[weak self] in
                     if let url = self?.tmpExportURL {

+ 9 - 1
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointPublicController.swift

@@ -702,6 +702,9 @@ class PQStuckPointPublicController: PQBaseViewController {
             endMovieExporter.cancel()
         }
  
+        exporter?.input?.removeAllTargets()
+        watermarkMovieExporter?.input?.removeAllTargets()
+        endMovieExporter?.input?.removeAllTargets()
         avPlayer.pause()
         avPlayer.replaceCurrentItem(with: nil)
         // 点击上报:返回按钮
@@ -1320,9 +1323,14 @@ extension PQStuckPointPublicController {
         } else {
             bottomOprationBgView.isHidden = false
             //add by ak 发布成功后如果带片尾的视频还没有生成成功时,出提示
+            saveVideoTipsBgView.isHidden = false
+            self.saveRetryBtn.isHidden = true
             if(saveMovieLocalURL == nil){
-                saveVideoTipsBgView.isHidden = false
+                saveVideoTipsLabel.text = "视频保存中..."
+            }else{
+                self.saveVideoTipsLabel.text = "视频已保存到相册"
             }
+            
         }
     }