|
@@ -1305,7 +1305,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
recordEndHandle?(voiceModel)
|
|
recordEndHandle?(voiceModel)
|
|
BFLog(3, message: "开始录制-取消:currentAssetProgress=\(currentAssetProgress.seconds),cuInde=\(currItemModelIndex),currIndex=\(voiceModel?.currIndex ?? 0),\(String(describing: voiceModel)),\(String(describing: recorderManager?.voiceModel))")
|
|
BFLog(3, message: "开始录制-取消:currentAssetProgress=\(currentAssetProgress.seconds),cuInde=\(currItemModelIndex),currIndex=\(voiceModel?.currIndex ?? 0),\(String(describing: voiceModel)),\(String(describing: recorderManager?.voiceModel))")
|
|
if voiceModel != nil, currentAssetProgress.seconds - (recorderManager?.voiceModel?.startCMTime.seconds ?? 0) < 1.0 {
|
|
if voiceModel != nil, currentAssetProgress.seconds - (recorderManager?.voiceModel?.startCMTime.seconds ?? 0) < 1.0 {
|
|
- cShowHUB(superView: nil, msg: "最短录制1秒")
|
|
|
|
|
|
+ cShowHUB(superView: nil, msg: "shoot_tips_least".BFLocale)
|
|
recorderManager?.cancelTitleService()
|
|
recorderManager?.cancelTitleService()
|
|
}
|
|
}
|
|
// 删除文件
|
|
// 删除文件
|
|
@@ -1994,7 +1994,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
if wself.isRecording {
|
|
if wself.isRecording {
|
|
wself.endRecord()
|
|
wself.endRecord()
|
|
- cShowHUB(superView: nil, msg: "此视频已录制到头了哦")
|
|
|
|
|
|
+ cShowHUB(superView: nil, msg: "tips_full".BFLocale)
|
|
}
|
|
}
|
|
wself.playBtn.isSelected = false
|
|
wself.playBtn.isSelected = false
|
|
wself.playBtn.isHidden = wself.playBtn.isSelected
|
|
wself.playBtn.isHidden = wself.playBtn.isSelected
|
|
@@ -2179,7 +2179,8 @@ extension BFRecordScreenController: UICollectionViewDelegate, UICollectionViewDa
|
|
return
|
|
return
|
|
}
|
|
}
|
|
guard item != nil else {
|
|
guard item != nil else {
|
|
- cShowHUB(superView: nil, msg: "视频获取失败:\(recordItem?.index ?? 0)")
|
|
|
|
|
|
+ BFLog(message: "视频获取失败:\(recordItem?.index ?? 0)")
|
|
|
|
+ cShowHUB(superView: nil, msg: "视频获取失败")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
wself.rscurrentManager.resetEnv()
|
|
wself.rscurrentManager.resetEnv()
|
|
@@ -2208,11 +2209,11 @@ extension BFRecordScreenController: UICollectionViewDelegate, UICollectionViewDa
|
|
|
|
|
|
func showDeleteCamera(){
|
|
func showDeleteCamera(){
|
|
let alertV = UIAlertController(title: nil, message: "你还没有录制内容哦,切换段落将会取消录制,是否确定取消", preferredStyle: .alert)
|
|
let alertV = UIAlertController(title: nil, message: "你还没有录制内容哦,切换段落将会取消录制,是否确定取消", preferredStyle: .alert)
|
|
- let cancelAction = UIAlertAction(title: "取消", style: .default) {[weak self] _ in
|
|
|
|
|
|
+ let cancelAction = UIAlertAction(title: "option_cancel".BFLocale, style: .default) {[weak self] _ in
|
|
guard let wself = self else { return }
|
|
guard let wself = self else { return }
|
|
wself.collectionView.isScrollEnabled = true
|
|
wself.collectionView.isScrollEnabled = true
|
|
}
|
|
}
|
|
- let okAction = UIAlertAction(title: "确定", style: .default) { [weak self] _ in
|
|
|
|
|
|
+ let okAction = UIAlertAction(title: "option_ok".BFLocale, style: .default) { [weak self] _ in
|
|
guard let wself = self else { return }
|
|
guard let wself = self else { return }
|
|
wself.collectionView.isScrollEnabled = true
|
|
wself.collectionView.isScrollEnabled = true
|
|
wself.removeCameroCell()
|
|
wself.removeCameroCell()
|