|
@@ -383,6 +383,10 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
super.viewDidLoad()
|
|
|
_ = disablePopGesture()
|
|
|
|
|
|
+ checkStatus()
|
|
|
+ // mdf by ak 切换外放和请求权限分开 否则会导致首次安装时不能执行切换操作
|
|
|
+ try? AVAudioSession.sharedInstance().setCategory(.playAndRecord, options: .defaultToSpeaker)
|
|
|
+
|
|
|
// add by ak 取 nsl token
|
|
|
BFRecordScreenViewModel.getNlsAccessToken { [weak self] token, appkey in
|
|
|
BFLog(message: "nls appkey is \(appkey), token is \(token)")
|
|
@@ -540,9 +544,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
// bottomeView.addSubview(changeVoiceBtn)
|
|
|
bottomeView.addSubview(progressThumV)
|
|
|
|
|
|
- if checkStatus() {
|
|
|
- try? AVAudioSession.sharedInstance().setCategory(.playAndRecord, options: .defaultToSpeaker)
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
avatarView.recordEndCallBack = { _, materialsModel in
|
|
|
BFLog(message: "新录制完成::::\(materialsModel?.locationPath ?? "")")
|