|
|
|
@ -51,9 +51,9 @@ class MicrophoneCapture: NSObject { |
|
|
|
// 设置音频会话参数 |
|
|
|
try audioSession.setCategory(.playAndRecord, |
|
|
|
mode: .videoChat, |
|
|
|
options: [//.allowBluetooth, |
|
|
|
options: [//.allowBluetooth, // 允许蓝牙耳机,占用hfp链路 |
|
|
|
// .allowAirPlay, |
|
|
|
.allowBluetoothA2DP, |
|
|
|
.allowBluetoothA2DP,// 允许蓝牙耳机,不占用hfp链路 |
|
|
|
.mixWithOthers, |
|
|
|
.defaultToSpeaker |
|
|
|
]) |
|
|
|
|