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

chooseAudioRoute seems not detecting the bluetooth connected to the phone. #203

Open
jikseyres16 opened this issue Oct 20, 2022 · 8 comments

Comments

@jikseyres16
Copy link

The audio is not routed to the Bluetooth device even using chooseAudioRoute('BLUETOOTH') seems like it is not being detected.

I tried to change the parameter to 'EARPIECE' to see the result and check for the available device list and yeah no Bluetooth there:

{"availableAudioDeviceList": "[\"SPEAKER_PHONE\",\"EARPIECE\"]", "selectedAudioDevice": "EARPIECE"}

I tried not to call the InCallManager.start() then the phone routed the audio to the Bluetooth, but is used like this the routing back to speaker phone and earpiece will not be working.

I tested this on Samsung S22.

Anyidea why?

@haisamMH
Copy link

Yes the same issue here

@QSJSI
Copy link

QSJSI commented Nov 30, 2022

same issue

@minhvu7896
Copy link

Hi @jikseyres16.

Which function return {"availableAudioDeviceList": "[\"SPEAKER_PHONE\",\"EARPIECE\"]", "selectedAudioDevice": "EARPIECE"}?

I can't found that.
Thank you.

@aleksips
Copy link

I have the same issue and bluetooth works indeed if InCallManager.start() is not called but then ofc changing the audio device does not work. I also heard that this would not happen on Android 11 and earlier but I haven't confirmed that yet.

@st1992
Copy link

st1992 commented Jan 12, 2023

Same issue

@jikseyres16
Copy link
Author

@minhvu7896 , you can tapped and listen to the onAudioDeviceChanged event to see that availableAudioDeviceList

@jikseyres16
Copy link
Author

Hey Guys,

my workaround here is set the audio route as InCallManager.setForceSpeakerphoneOn(false) based on my understanding the documentation. This route the audio based on default one being used before the app runs of before you call the inCallManager.start().

this works though I think only on Android 11 and above.

@katiahr
Copy link

katiahr commented Jun 13, 2024

Any Solution for this issue?

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

7 participants