|
@@ -1093,10 +1093,12 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
subtitleCount = itemModels[currItemModelIndex].titleStickers.count
|
|
subtitleCount = itemModels[currItemModelIndex].titleStickers.count
|
|
BFLog(2, message: "删除\(voiceModel?.wavFilePath ?? "")对应的字幕 后 count\(subtitleCount)")
|
|
BFLog(2, message: "删除\(voiceModel?.wavFilePath ?? "")对应的字幕 后 count\(subtitleCount)")
|
|
/// 重置进度
|
|
/// 重置进度
|
|
- currentAssetProgress = CMTime(seconds: voiceModel?.startCMTime.seconds ?? 0, preferredTimescale: 1000)
|
|
|
|
- resetCurrentProgress()
|
|
|
|
|
|
+ if itemModels[currItemModelIndex].mediaType == .IMAGE {
|
|
|
|
+ currentAssetProgress = CMTime(seconds: recorderManager?.voiceModel?.startCMTime.seconds ?? 0, preferredTimescale: 1000)
|
|
|
|
+ resetCurrentProgress()
|
|
|
|
+ }
|
|
// 移除
|
|
// 移除
|
|
- indirectionView?.deleteItem(isCurrent: true)
|
|
|
|
|
|
+ resetAllIndirectionView()
|
|
recorderManager?.voiceModel = nil
|
|
recorderManager?.voiceModel = nil
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1768,7 +1770,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
BFLog(message: "更新录音进度\(#function)- \(self?.currentAssetProgress.seconds ?? 0)")
|
|
BFLog(message: "更新录音进度\(#function)- \(self?.currentAssetProgress.seconds ?? 0)")
|
|
self!.progreddL.text = String(format: "%@", CMTimeGetSeconds(self!.currentAssetProgress).formatDurationToHMS())
|
|
self!.progreddL.text = String(format: "%@", CMTimeGetSeconds(self!.currentAssetProgress).formatDurationToHMS())
|
|
}
|
|
}
|
|
- assetPlayer!.seek(to: currentAssetProgress, toleranceBefore: CMTime(value: 1, timescale: 1_000_000), toleranceAfter: CMTime(value: 1, timescale: 1_000_000)) { _ in
|
|
|
|
|
|
+ assetPlayer?.seek(to: currentAssetProgress, toleranceBefore: CMTime(value: 1, timescale: 1_000_000), toleranceAfter: CMTime(value: 1, timescale: 1_000_000)) { _ in
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|