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