harry 3 роки тому
батько
коміт
4bfe15229e

+ 12 - 7
BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

@@ -358,19 +358,24 @@ public class BFRecordScreenController: BFBaseViewController {
                 if isStart {
                     sself.events.append(WithDrawModel(type: 0, timestamp: sself.currentAssetProgress.seconds))
                 }
+                if !sself.isDragingProgressSlder {
+                    BFLog(1, message: "isDragingProgressSlder 进行中")
+
+                }
                 sself.isDragingProgressSlder = true
 
-//                BFLog(1, message: "drag 进行中")
+                BFLog(1, message: "isDragingProgressSlder 进行中")
 
                 sself.changeProgress(progress: process)
             }
         }
         vv.dragEndHandle = { [weak self] process in
-
-            guard let sself = self else {
-                return
+            DispatchQueue.main.async { [weak self] in
+                guard let sself = self else {
+                    return
+                }
+                sself.thumbViewEnded(progress: process)
             }
-            sself.thumbViewEnded(progress: process)
         }
         vv.isHidden = true
         return vv
@@ -937,7 +942,7 @@ public class BFRecordScreenController: BFBaseViewController {
         isDragingProgressSlder = false
         currentPlayRecordIndex = -1
         hadPrepareToPlayRecord = false
-        BFLog(1, message: isDragingProgressSlder ? "drag false" : "drag  tr")
+        BFLog(1, message: "isDragingProgressSlder : \(isDragingProgressSlder)")
         searchStopAtRecordRange()
         changeWithDrawBtnLayout(false)
     }
@@ -1279,7 +1284,7 @@ public class BFRecordScreenController: BFBaseViewController {
                 DispatchQueue.main.async { [weak self] in
                     self?.progreddL.text = String(format: "%@", CMTimeGetSeconds(time).formatDurationToHMS())
                     let su = !(self?.isDragingProgressSlder ?? false) || (self?.isRecording ?? false ) || (self?.isNormalPlaying ?? false)
-                    BFLog(1, message: "进度监控:isDragingProgressSlder-\(self?.isDragingProgressSlder ?? false), isRecording - \(self?.isRecording ?? false), isNormalPlaying - \(self?.isNormalPlaying ?? false), su - \(su)")
+//                    BFLog(1, message: "进度监控:isDragingProgressSlder-\(self?.isDragingProgressSlder ?? false), isRecording - \(self?.isRecording ?? false), isNormalPlaying - \(self?.isNormalPlaying ?? false), su - \(su)")
                     if su {
                         self?.progressThumV.progress = time.seconds
                     }