|
@@ -166,7 +166,6 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
rscurrentManager.progreddL = progreddL
|
|
rscurrentManager.progreddL = progreddL
|
|
|
rscurrentManager.recordPlayer = recordPlayer
|
|
rscurrentManager.recordPlayer = recordPlayer
|
|
|
rscurrentManager.progressThumV = progressThumV
|
|
rscurrentManager.progressThumV = progressThumV
|
|
|
- progressThumV.recordItem = itemModel
|
|
|
|
|
rscurrentManager.recordItem = itemModel
|
|
rscurrentManager.recordItem = itemModel
|
|
|
rscurrentManager.resetEnv()
|
|
rscurrentManager.resetEnv()
|
|
|
if currMediaType == .Video {
|
|
if currMediaType == .Video {
|
|
@@ -1868,7 +1867,6 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
changeWithDrawBtnLayout(event.type)
|
|
changeWithDrawBtnLayout(event.type)
|
|
|
} else {
|
|
} else {
|
|
|
changeWithDrawBtnLayout(0)
|
|
changeWithDrawBtnLayout(0)
|
|
|
- withDrawBtn.isEnabled = false
|
|
|
|
|
}
|
|
}
|
|
|
searchStopAtRecordRange()
|
|
searchStopAtRecordRange()
|
|
|
let itemModel = itemModels[currItemModelIndex]
|
|
let itemModel = itemModels[currItemModelIndex]
|
|
@@ -1880,11 +1878,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
rscmanager.cameraProgressV?.progressView.contentOffset = CGPoint(x: currentAssetProgress.seconds * 70.0 / 5.0, y: 0)
|
|
rscmanager.cameraProgressV?.progressView.contentOffset = CGPoint(x: currentAssetProgress.seconds * 70.0 / 5.0, y: 0)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- // 如果是图片需重置播放按钮
|
|
|
|
|
- if itemModel.mediaType != .Video {
|
|
|
|
|
- playBtn.isSelected = itemModels[currItemModelIndex].voiceStickers.count <= 0
|
|
|
|
|
- playBtn.isHidden = playBtn.isSelected
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2390,11 +2384,15 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
|
|
// 撤销按钮修改title,重绘
|
|
// 撤销按钮修改title,重绘
|
|
|
func changeWithDrawBtnLayout(_ type: Int) {
|
|
func changeWithDrawBtnLayout(_ type: Int) {
|
|
|
|
|
+ withDrawBtn.isEnabled = true
|
|
|
switch type {
|
|
switch type {
|
|
|
case 3:
|
|
case 3:
|
|
|
withDrawBtn.setTitle("record_recover".BFLocale, for: .normal)
|
|
withDrawBtn.setTitle("record_recover".BFLocale, for: .normal)
|
|
|
case 2:
|
|
case 2:
|
|
|
withDrawBtn.setTitle("record_undo".BFLocale, for: .normal)
|
|
withDrawBtn.setTitle("record_undo".BFLocale, for: .normal)
|
|
|
|
|
+ case 0:
|
|
|
|
|
+ withDrawBtn.isEnabled = false
|
|
|
|
|
+ fallthrough
|
|
|
default:
|
|
default:
|
|
|
withDrawBtn.setTitle("record_back".BFLocale, for: .normal)
|
|
withDrawBtn.setTitle("record_back".BFLocale, for: .normal)
|
|
|
}
|
|
}
|