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

How to change output between speaker and headphones in iOS #46

Closed
wijesijp opened this issue Nov 2, 2021 · 1 comment
Closed

How to change output between speaker and headphones in iOS #46

wijesijp opened this issue Nov 2, 2021 · 1 comment

Comments

@wijesijp
Copy link

wijesijp commented Nov 2, 2021

I am having trouble figuring out how to change output in iOS

I thought following would change it . But it is giving me an error.
I am also seeing only the speaker option so I assume there must be a different way to do this.

await AVAudioSession().overrideOutputAudioPort(AVAudioSessionPortOverride.speaker);

Can anyone provide some assistance for this?

@ryanheise
Copy link
Owner

I'll close this as a duplicate of #37 .
Screen Shot 2021-11-02 at 6 23 18 pm

If anyone would like to discuss how this can be done, please discuss it in #37 and those discussions will also eventually lead to a convenience method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants