opentok / opentok-android-sdk-samples

Sample applications illustrating best practices using OpenTok Android SDK.
https://tokbox.com/developer/sdks/android/
MIT License
211 stars 169 forks source link

AdvancedAudioDevice bluetooth with LG V30 #410

Closed lparnes1 closed 1 year ago

lparnes1 commented 2 years ago

I have an LG V30 running Android 9 and a Samsung Galaxy Tab A running Android 8.1. They can both work with bluetooth headphones without using the AdvancedAudioDevice. When using the AdvancedAudioDevice, the Samsung works, but the LG doesn't although it appears to go through the same code path up to connecting to bluetooth, and it doesn't disconnect. Changing the Android audio stream to use didn't make any difference either.

I have also gone through the code and changed the deprecated things in AdvancedAudioDevice, requestAudioFocus, new AudioTrack, and abandonAudioFocus to the 'proper' code, and it didn't change anything - the LG wouldn't push sound through the bluetooths before or after, and the Samsung could. After searching around, I could find LG V30 bluetooth has some issues, but I also found issues with Samsung Galaxy Tabs.

Any ideas or is there anything specific I could provide for you?

v-kpheng commented 1 year ago

Thanks, @lparnes1, for letting us know about the issue.

A lot of bluetooth improvements have been made since this was first filed, so I'm going to close this issue. If this issue can still be reproduced on the current version of the SDK, please let us know. Thanks!