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

Add convenience methods to switch between speaker and headphone #37

Closed
ryanheise opened this issue Aug 20, 2021 · 3 comments
Closed

Add convenience methods to switch between speaker and headphone #37

ryanheise opened this issue Aug 20, 2021 · 3 comments

Comments

@ryanheise
Copy link
Owner

Some information for the Android side:

https://stackoverflow.com/questions/22770321/android-switching-audio-between-bluetooth-and-phone-speaker-is-inconsistent

@wijesijp
Copy link

wijesijp commented Nov 2, 2021

Hi @ryanheise any where you able to find out how to do this?

I have similar issue on 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);

@ryanheise
Copy link
Owner Author

I think there are several answers on StackOverflow for how to do this and I would encourage those interested in this feature to first do a search on StackOverflow. Please share below what you find as I will collect the ideas and techniques that you share and ultimately consider making them into a convenience method.

@ryanheise
Copy link
Owner Author

Closing in favour of #39 .

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