|
@@ -943,7 +943,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
}) {
|
|
|
let model = itemModels[currItemModelIndex].voiceStickers[modelIndex]
|
|
|
itemModels[currItemModelIndex].voiceStickers.remove(at: modelIndex)
|
|
|
- // 移除
|
|
|
+ // 移除音频
|
|
|
indirectionView?.deleteItem(index: modelIndex)
|
|
|
var tuples = action.deletedVoices
|
|
|
if tuples != nil, tuples!.count > 0 {
|
|
@@ -1010,7 +1010,8 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
changeWithDrawBtnLayout(false)
|
|
|
}
|
|
|
searchStopAtRecordRange()
|
|
|
- indirectionView?.resetAllSubViews(items: itemModels[currItemModelIndex].voiceStickers, totalDuration: itemModels[currItemModelIndex].materialDuraion)
|
|
|
+ indirectionView?.resetAllSubViews(items: itemModels[currItemModelIndex].voiceStickers, percenWidth: progressThumV.thumbImageWidth / 2.0, totalDuration: itemModels[currItemModelIndex].materialDuraion)
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1477,7 +1478,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- if itemModels[currItemModelIndex].materialDuraion > 0 {
|
|
|
+ if itemModels[currItemModelIndex].materialDuraion >= 0 {
|
|
|
currentAssetProgress = CMTime(value: CMTimeValue(progress * Float(itemModels[currItemModelIndex].materialDuraion) * 1000), timescale: 1000)
|
|
|
DispatchQueue.main.async { [weak self] in
|
|
|
self?.progreddL.text = String(format: "%@", CMTimeGetSeconds(self!.currentAssetProgress).formatDurationToHMS())
|