You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I connected to the phone using a Bluetooth headset, I set the system Bluetooth mode, and I did use the headset when playing audio. But when I call the linphone to make a call, it's the phone's microphone,How do I set it to Bluetooth。
This is my code to set the system mode。
do {
try AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .voiceChat, options: [.allowBluetooth])
try AVAudioSession.sharedInstance().setActive(true, options: .notifyOthersOnDeactivation)
} catch {
print(error.localizedDescription)
}
The text was updated successfully, but these errors were encountered:
When I connected to the phone using a Bluetooth headset, I set the system Bluetooth mode, and I did use the headset when playing audio. But when I call the linphone to make a call, it's the phone's microphone,How do I set it to Bluetooth。
This is my code to set the system mode。
do {
try AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .voiceChat, options: [.allowBluetooth])
try AVAudioSession.sharedInstance().setActive(true, options: .notifyOthersOnDeactivation)
} catch {
print(error.localizedDescription)
}
The text was updated successfully, but these errors were encountered: