|
@@ -55,6 +55,8 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
|
|
|
public var voiceBtnClickHandle: ((_ voice: PQVoiceModel?) -> Void)?
|
|
|
+
|
|
|
+ public var bgmModel:PQVoiceModel?
|
|
|
|
|
|
lazy var rsvmanager : BFRecordScreenVideoManager = {
|
|
|
let m = BFRecordScreenVideoManager()
|
|
@@ -733,6 +735,13 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
override public func viewDidLoad() {
|
|
|
super.viewDidLoad()
|
|
|
_ = disablePopGesture()
|
|
|
+
|
|
|
+ let path = Bundle.main.path(forResource: "11111", ofType: "mp3")
|
|
|
+ bgmModel = PQVoiceModel.init()
|
|
|
+ bgmModel?.wavFilePath = path
|
|
|
+ bgmModel?.startCMTime = CMTime.init(value: 20 * 1000_000, timescale: 1000_000)
|
|
|
+ bgmModel?.endCMTime = CMTime.init(value: 240 * 1000_000, timescale: 1000_000)
|
|
|
+ bgmModel?.volume = 100
|
|
|
|
|
|
let doubleTapGes = UITapGestureRecognizer(target: self, action: #selector(doubleTapAction(tap:)))
|
|
|
doubleTapGes.numberOfTapsRequired = 2
|
|
@@ -2428,7 +2437,9 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
wself.isNormalPlaying = false
|
|
|
wself.isEndPlay = true
|
|
|
wself.updatePlayBtnStatus()
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ wself.rscurrentManager.pause()
|
|
|
|
|
|
if wself.isRecording {
|
|
|
wself.endRecord()
|
|
@@ -2727,6 +2738,7 @@ extension BFRecordScreenController: UICollectionViewDelegate, UICollectionViewDa
|
|
|
|
|
|
func endScrollItem(page: Int) {
|
|
|
BFLog(1, message: "endScrollItem")
|
|
|
+ rscurrentManager.playBGMPlayer.pause()
|
|
|
|
|
|
currItemModelIndex = page
|
|
|
|