harry 3 anni fa
parent
commit
52cd98dacb
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      Introduce/Record/INVideoExportController.swift

+ 6 - 1
Introduce/Record/INVideoExportController.swift

@@ -482,6 +482,7 @@ class INVideoExportController: BFBaseViewController {
             sliderView = BFVideoPlayerSliderView(frame: CGRect(x: (backV.frame.width - playerLayer.frame.width) / 2, y: backV.frame.height - 60, width: playerLayer.frame.width, height: 50),isShowFullScreen: false)
             sliderView = BFVideoPlayerSliderView(frame: CGRect(x: (backV.frame.width - playerLayer.frame.width) / 2, y: backV.frame.height - 60, width: playerLayer.frame.width, height: 50),isShowFullScreen: false)
             sliderView?.playerBtn.setImage(UIImage(named: "play_0"), for: .normal)
             sliderView?.playerBtn.setImage(UIImage(named: "play_0"), for: .normal)
             sliderView?.playerBtn.setImage(UIImage(named: "play_1"), for: .selected)
             sliderView?.playerBtn.setImage(UIImage(named: "play_1"), for: .selected)
+            sliderView?.playerBtn.imageEdgeInsets = UIEdgeInsets(top: 1, left: 7, bottom: 0, right: 0)
             sliderView?.valueChangeBloc = { [weak self,weak sliderView] sender in
             sliderView?.valueChangeBloc = { [weak self,weak sliderView] sender in
                 let cmtime = CMTime(value: CMTimeValue(Float64(sender.value) * Float64(self?.avplayer.currentItem?.asset.duration.seconds ?? 0) * 1000.0), timescale: CMTimeScale(1000.0))
                 let cmtime = CMTime(value: CMTimeValue(Float64(sender.value) * Float64(self?.avplayer.currentItem?.asset.duration.seconds ?? 0) * 1000.0), timescale: CMTimeScale(1000.0))
                 BFLog(message: "cmtime == \(cmtime),\(cmtime.seconds)")
                 BFLog(message: "cmtime == \(cmtime),\(cmtime.seconds)")
@@ -569,7 +570,11 @@ class INVideoExportController: BFBaseViewController {
         progressView.isHidden = false
         progressView.isHidden = false
         progressL.isHidden = false
         progressL.isHidden = false
         sliderView?.isHidden = true
         sliderView?.isHidden = true
-        export.startExprot(synthesisAll: saveAllBtn.isSelected)
+        
+        DispatchQueue.global().async {[weak self] in
+            self?.export.startExprot(synthesisAll: self?.saveAllBtn.isSelected ?? true)
+        }
+        
         UIApplication.shared.isIdleTimerDisabled = true
         UIApplication.shared.isIdleTimerDisabled = true
         // 开始合成上报
         // 开始合成上报
         BFEventTrackAdaptor.baseReportUpload(businessType: nil, objectType: .ot_startCompose, pageSource: .sp_composePage, commonParams: commonParams())
         BFEventTrackAdaptor.baseReportUpload(businessType: nil, objectType: .ot_startCompose, pageSource: .sp_composePage, commonParams: commonParams())