-
Notifications
You must be signed in to change notification settings - Fork 394
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
Android Bluetooth headphones get no sound. #27
Comments
Please provide your devices info and flutter environment here. |
All audio (including audio from other apps) plays through bluetooth headphones until an Agora call starts. We call AgoraRtcEngine.setDefaultAudioRouteToSpeaker(false) and AgoraRtcEngine.setEnableSpeakerphone(false) before joining the call, but as soon as an Agora call starts the audio output switches from bluetooth headphones to speakerphone. When the Agora call ends, audio output switches back to the bluetooth headphones, including audio from other apps. There are no uncaught exceptions during this process. I put a print statement in the AgoraRtcEngine.onAudioRouteChanged callback and another right after we call AgoraRtcEngine.setEnableSpeakerphone and this is the output:
However, audio outputs through the speakerphone during the entire audio call, even when onAudioRouteChanged reports 5 (AUDIO_ROUTE_HEADSETBLUETOOTH). I reproduced the issue on a T-Mobile REVVL (REVVL 5049W) running Android 7.0 and a Samsung Galaxy S8 (SM-G950U) running Android 9 Here is my results from flutter doctor: [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • No issues found! During my test, I expanded our AndroidManifest.xml permissions to include the following:
|
Which bluetooth headphones did u use? And Please also provide your headphones bluetooth protocol, you could find it from your android system. @mikebcurtis |
@mikebcurtis If you r using communication mode, you could try |
@mikebcurtis or @Aliharu Did either of y'all find a resolution to this? I'm running into the same problem on native Android. The above solution didn't change anything for me. |
@alexsullivan114 can you hear the voice from speakerphone or handset? |
@LichKing-2234 Yes. The sound comes out of the earpiece, if I set speakerphone on it comes through the speakerphone and if I have headphones plugged in then it comes through the headphones. But if I have headphones connected via bluetooth it will still come out of the earpiece or speakerphone. |
@alexsullivan114 you can try |
I'll give that a shot |
@LichKing-2234 Hey it looks like that fixed it! Not sure why but thanks! |
@alexsullivan114 I think here have some problem, we will check it, but you can use the configuration above before we fixed it |
Hey @LichKing-2234, I have same issue with this, config setAudioProfile(AudioProfile.Default, AudioScenario.GameStreaming) will have solve solution but i don't want to use the scenario GameStreaming to my application. Could you please take a look on this. Thanks a lot! |
@thangvq95 Have you try the dev version? I think it is fixed by native platform. |
@LichKing-2234 yeps, i'm using dev version. it's only work for GameStreaming scenario! |
@thangvq95 I will check later |
@thangvq95
|
Issue still occurs even with |
Please try |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution. |
Hi,
--> it seems that all sound of android system is redirected to the speakers. I have already used: The impact is very big on the project because everybody now is using bluetooth. |
@silversquall any updates? |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue. |
When I use bluetooth wireless headphones with an android device I get no sound.
The text was updated successfully, but these errors were encountered: