-
Notifications
You must be signed in to change notification settings - Fork 156
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
Connecting a Bluetooth headset on Android while in a session is broken with Gradle Plugin 4.2.x or higher #624
Comments
WE are aware of it, it's an issue present also on the Android SDK. The team is working on a fix. |
FYI: we tried a workaround using enableStereoOutput: true option on the session. |
@OttoLaitinen can you try with opentok-react-native 0.21.1? https://github.com/OttoLaitinen/opentok-react-native-samples-gradle-plugin-issue/blob/main/BasicVideoChat/package.json#L13 |
Hi! Sorry it took some time to get back to you here on GH but I can confirm the bug can still be reproduced on 0.21.1 if every other version is kept the same as in the original issue description. |
@enricop89 i got feedback last week by mail from Roger Furtenheim, that the issue is solved in the android specific code. |
After testing BasicVideoChat with updated build.gradle
and OTSessionManager.java comment-out of @OverRide
the issue seems to be solved. What remains an issue for us is getting a proper release including this update. |
Hi, I'm getting the same issue, but @pietgk answert didn't work for me, using the last version. |
@cnx-carlosvogt |
I think we can close this issue from our point of view. |
Hi all! I've just test on 3 devices with the lastest version. On Samsung S9 (Android 9) and Huawei P20 (Android 9) it works : when I connect my bluetooth device during a video call, the switch from speaker to bluetooth device works. But on Pixel 5 (Android 14) the audio is always from speaker whereas the bluetooth device is connected. I must restart the app to use bluetooth device. |
@enricop89 We are running our app with the latest versions: disconnecting a connected bluetooth headset in a call switches to speaker, reconnecting the bluetooth headset does not turn the sound to the headset (tested on Galaxy S10e, Android 9). So the issue is NOT resolved. This again blocks our release of the app. We tried using react-native-incall-manager InCallManager.chooseAudioRoute to work around the issue but that does not solve the issue. |
tried enableStereoOutput in the session options to see if it makes a difference, but that crashes the app... |
I Created a Gist https://gist.github.com/pietgk/24d5dabb80cbe146de3bd6c4e3f3b6c1
the remaining open issue is that on mute on android 13 (probably >= 12) we need So as React-native is supported by Vonage. Thanks in advance |
Bug Report
Current behavior
Using Android Gradle Plugin 4.2.x or higher results in problems with Bluetooth on Android.
Steps to reproduce
android/build.gradle
(It needs Gradle version 6.7.1 so change that also)Example Project
Link to a fork with the problem
What is the current bug behavior?
Sound output doesn't come through a connected Bluetooth headset if the Bluetooth headset is connected to the mobile device during a session. (Sound comes through the mobile device speakers instead.)
If the Bluetooth headset is connected before opening the app (not session) then sound will come through the headset. However if headset is disconnected and reconnected the sound will keep coming through the mobile device speaker.
What is the expected correct behavior?
Sound output should come through the Bluetooth headset whenever it is connected to the mobile device. Otherwise the sound should come through the mobile device speakers.
Relevant logs and/or screenshots
N/A
The text was updated successfully, but these errors were encountered: