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

Expose AVAudioSession interface #279

Closed
ajsharp opened this issue Jan 27, 2024 · 4 comments
Closed

Expose AVAudioSession interface #279

ajsharp opened this issue Jan 27, 2024 · 4 comments
Labels
enhancement New feature or request iOS

Comments

@ajsharp
Copy link

ajsharp commented Jan 27, 2024

Is your feature request related to a problem? Please describe.
I need access to the AVAudioSession swift class. This is useful and necessary sometimes, such as when connected to a car bluetooth device to "end the call" that cars will "start" when you are using the mic when in the car.

Describe the solution you'd like
Make a method available that allows setting the AVAudioSession category.

@llfbandit
Copy link
Owner

This package won't expose this.
What can be done is to restore the previous category before the recording.

@llfbandit llfbandit added iOS enhancement New feature or request labels Mar 7, 2024
@mynlexi
Copy link

mynlexi commented Jul 28, 2024

This is also quite a big painpoint for our project

@bbjay
Copy link
Contributor

bbjay commented Oct 10, 2024

There is a new option IosRecordConfig.manageAudioSession (in master, but not yet released) which you can set to false and then use the audio_session plugin to manage the AVAudioSession all by yourself.

@llfbandit
Copy link
Owner

manageAudioSession & category options ref: d25e64c 8485404

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

No branches or pull requests

4 participants