|
@@ -2217,7 +2217,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
recordPlayerTimeObserver = recordPlayer.addPeriodicTimeObserver(forInterval: CMTime(value: 1, timescale: 1000), queue: DispatchQueue.global()) { [weak self] time in
|
|
|
guard let wself = self else { return }
|
|
|
if time.seconds > 0 {
|
|
|
- wself.assetPlayer.volume = 0 //wself.originalVolume * 0.6
|
|
|
+ wself.assetPlayer.volume = wself.originalVolume * 0.6
|
|
|
}
|
|
|
if CMTimeGetSeconds(wself.currenStartPlayTime) <= 0 {
|
|
|
BFLog(message: "重新更新开始播放进度\(#function)-\(wself.currenStartPlayTime.seconds)")
|
|
@@ -2375,6 +2375,9 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
assetPlayer.pause()
|
|
|
recordPlayer.pause()
|
|
|
+ bgmPlayer.pause()
|
|
|
+ rscurrentManager.pause()
|
|
|
+
|
|
|
recordStartPlayTime = CMTime.zero
|
|
|
pauseTime = currentAssetProgress.seconds
|
|
|
currentPlayRecordIndex = -1
|
|
@@ -2382,9 +2385,8 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
// 暂停状态
|
|
|
updatePlayBtnStatus()
|
|
|
+ updateRecordBtnStatus()
|
|
|
|
|
|
- bgmPlayer.pause()
|
|
|
- rscurrentManager.pause()
|
|
|
|
|
|
}
|
|
|
|
|
@@ -2505,12 +2507,10 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
if !wself.isRecording, wself.currItemModelIndex < (wself.itemModels.count - 1) {
|
|
|
} else {} //
|
|
|
|
|
|
- wself.isNormalPlaying = false
|
|
|
wself.isEndPlay = true
|
|
|
- wself.updatePlayBtnStatus()
|
|
|
+ wself.pause()
|
|
|
|
|
|
//add by ak 导入视频素材播放结束后主动调用一次基类的pause 停止背景音乐
|
|
|
- wself.rscurrentManager.pause()
|
|
|
|
|
|
if wself.isRecording {
|
|
|
wself.endRecord()
|