|
@@ -156,8 +156,6 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
if currMediaType == .Video {
|
|
|
(cell as? BFVideoCoverViewCell)?.rotationView()
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -186,10 +184,17 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
var isEndPlay = false {
|
|
|
didSet{
|
|
|
if isEndPlay {
|
|
|
- recordBtn.isHidden = (currMediaType != .Video) ? false : true
|
|
|
- if currMediaType == .Video {
|
|
|
- deleteRecordBtn.isHidden = true
|
|
|
+
|
|
|
+ switch currMediaType {
|
|
|
+ case .Image:
|
|
|
+ recordBtn.isHidden = false
|
|
|
+ case .Video:
|
|
|
+ recordBtn.isHidden = true
|
|
|
+ case .Camera:
|
|
|
+ recordBtn.isHidden = false
|
|
|
}
|
|
|
+
|
|
|
+ deleteRecordBtn.isHidden = true
|
|
|
subtitleBtn.isHidden = false
|
|
|
soundSettingBtn.isHidden = false
|
|
|
}else {
|
|
@@ -1619,8 +1624,10 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
hadPrepareToPlayRecord = false
|
|
|
BFLog(1, message: "isDragingProgressSlder : \(isDragingProgressSlder)")
|
|
|
BFLog(3, message: "重置播放index-\(#function) = \(currentPlayRecordIndex)")
|
|
|
- isEndPlay = (progress == 1)
|
|
|
+
|
|
|
searchStopAtRecordRange()
|
|
|
+ isEndPlay = (progress == 1) // 在searchStopAtRecordRange后边是保证拖动到结尾时,视频的按钮隐藏
|
|
|
+
|
|
|
changeWithDrawBtnLayout(0)
|
|
|
recorderManager?.voiceModel = nil
|
|
|
|
|
@@ -1691,7 +1698,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if startTime != nil && endTime != nil && !isEndPlay{
|
|
|
+ if startTime != nil && endTime != nil {
|
|
|
// TODO: 停在了录音区间,显示删除按钮
|
|
|
if needAdsorb {
|
|
|
if fabs((endTime! - currentAssetProgress).seconds) < 0.5 {
|