Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Bluetooth Output Devices #256

Closed
jbryanh opened this issue Nov 20, 2023 · 2 comments · Fixed by #289
Closed

Allow Bluetooth Output Devices #256

jbryanh opened this issue Nov 20, 2023 · 2 comments · Fixed by #289
Labels
enhancement New feature or request

Comments

@jbryanh
Copy link

jbryanh commented Nov 20, 2023

Is your feature request related to a problem? Please describe.
When .record is called, your code overrides any audio session that has been previously configured.

let options: AVAudioSession.CategoryOptions = [.defaultToSpeaker, .allowBluetooth] seems to override.

Describe the solution you'd like
The most popular audio session plugin, audio_session states:
"Note that iOS (and hence this plugin) provides a single audio session to your app which is shared by all of the different audio plugins you use. If your app uses multiple audio plugins, e.g. any combination of audio recording, text to speech, background audio, audio playing, or speech recognition, then it is possible that those plugins may internally overwrite each other's choice of these global system audio settings, including the ones you set via this plugin. Therefore, it is recommended that you apply your own preferred configuration using audio_session after all other audio plugins have loaded. You may consider asking the developer of each audio plugin you use to provide an option to not overwrite these global settings and allow them be managed externally."

@jbryanh jbryanh added the enhancement New feature or request label Nov 20, 2023
@appinteractive
Copy link

Any updates on this?

@juskuc
Copy link

juskuc commented Apr 2, 2024

This saved me in debugging a tough issue with call-kit/webrtc/this plugin causing various audio issues. Thanks for letting us know about the override!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants