B面1.0.6蓝牙播放的优化

This commit is contained in:
Mr.zhou 2024-06-11 12:00:19 +08:00
parent d3504cb6fc
commit 866318c73f

View File

@ -47,7 +47,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
let session = AVAudioSession.sharedInstance()
do {
//,
try session.setCategory(.playAndRecord, mode: .default, options: [.allowAirPlay, .defaultToSpeaker])
try session.setCategory(.playAndRecord, mode: .default, options: [.allowAirPlay, .defaultToSpeaker, .allowBluetooth])
//
try session.setActive(true)
try session.overrideOutputAudioPort(.speaker)