|
@@ -49,9 +49,9 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
recordBtn.setTitle(isRecording ? "松手 完成" : "按住 说话", for: .normal)
|
|
recordBtn.setTitle(isRecording ? "松手 完成" : "按住 说话", for: .normal)
|
|
recordBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#389AFF", alpha: isRecording ? 0.6 : 1)
|
|
recordBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#389AFF", alpha: isRecording ? 0.6 : 1)
|
|
playBtn.isSelected = isRecording
|
|
playBtn.isSelected = isRecording
|
|
- // if !isRecording {
|
|
|
|
- // BFLog(1, message: "stop")
|
|
|
|
- // }
|
|
|
|
|
|
+// if !isRecording {
|
|
|
|
+// BFLog(1, message: "stop")
|
|
|
|
+// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1241,7 +1241,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
func play() {
|
|
func play() {
|
|
BFLog(1, message: "开始播放 \(currentAssetProgress.seconds)")
|
|
BFLog(1, message: "开始播放 \(currentAssetProgress.seconds)")
|
|
-
|
|
|
|
|
|
+
|
|
isNormalPlaying = true
|
|
isNormalPlaying = true
|
|
if isEndPlay {
|
|
if isEndPlay {
|
|
isEndPlay = false
|
|
isEndPlay = false
|
|
@@ -1266,12 +1266,21 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
}
|
|
}
|
|
|
|
|
|
deleteRecordBtn.isHidden = true
|
|
deleteRecordBtn.isHidden = true
|
|
- recordBtn.isHidden = false
|
|
|
|
|
|
+
|
|
|
|
+ subtitleBtn.isHidden = true
|
|
|
|
+ soundSettingBtn.isHidden = true
|
|
|
|
+ withDrawBtn.isHidden = true
|
|
|
|
+ recordBtn.isHidden = true
|
|
}
|
|
}
|
|
|
|
|
|
func pause() {
|
|
func pause() {
|
|
BFLog(1, message: "暂停播放")
|
|
BFLog(1, message: "暂停播放")
|
|
isNormalPlaying = false
|
|
isNormalPlaying = false
|
|
|
|
+
|
|
|
|
+ subtitleBtn.isHidden = false
|
|
|
|
+ soundSettingBtn.isHidden = false
|
|
|
|
+ withDrawBtn.isHidden = false
|
|
|
|
+ recordBtn.isHidden = false
|
|
// movie?.cancelProcessing()
|
|
// movie?.cancelProcessing()
|
|
assetPlayer?.pause()
|
|
assetPlayer?.pause()
|
|
recordPlayer?.pause()
|
|
recordPlayer?.pause()
|