|
|
@@ -458,7 +458,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
newSubtitle.taskID = (header?["task_id"] as? String) ?? ""
|
|
|
|
|
|
|
|
|
- if audioFilePath == self?.recorderManager?.voiceModel?.wavFilePath ?? "aa" {
|
|
|
+ if URL(fileURLWithPath: audioFilePath ?? "b").deletingPathExtension().lastPathComponent.contains(URL(fileURLWithPath: (self?.recorderManager?.voiceModel?.wavFilePath ?? "aa")).deletingPathExtension().lastPathComponent) {
|
|
|
newSubtitle.timelineIn = (self?.recorderManager?.voiceModel?.startCMTime.seconds ?? 0.0) + Float64((((payload?["begin_time"]) as? Int) ?? 0) + 300) / 1000.0
|
|
|
newSubtitle.timelineOut = (self?.recorderManager?.voiceModel?.startCMTime.seconds ?? 0.0) + Float64(((payload?["time"]) as? Int) ?? 0) / 1000.0
|
|
|
} else {
|
|
|
@@ -1911,7 +1911,7 @@ public extension BFRecordScreenController {
|
|
|
currenStartPlayTime = CMTime.zero
|
|
|
}
|
|
|
playRecord(at: time, periodicTimeObserver: { [weak self] currentT, currentItem in
|
|
|
- BFLog(1, message: "播放录音进度:\(currentT),\(currentItem)")
|
|
|
+ BFLog(1, message: "播放录音进度:\(currentT.seconds),\(currentItem)")
|
|
|
if self?.itemModels[self?.currItemModelIndex ?? 0].mediaType == .IMAGE, self?.isNormalPlaying ?? false {
|
|
|
self?.imageRecordProgress(progress: CMTimeGetSeconds(currentT))
|
|
|
}
|