react-native-twilio-video-webrtc icon indicating copy to clipboard operation
react-native-twilio-video-webrtc copied to clipboard

Using default sound handling on Android rather than manual functions

Open shamilovtim opened this issue 4 years ago • 3 comments

Current functionality in the plugin looks to be that there have been devs who contributed functions to manually route audio to bluetooth, manually route to speakers or elsewhere. However, in a standard Android app which uses audio this shouldn't be necessary. The end user configures in their OS where the sound goes and that's where the app should route the sound. It shouldn't require a manual bluetooth button, manual headphones or speaker button, the user should be able to handle this on the OS side. Is there a way to add a setting so the plugin uses the default sound handling and output device of the OS so we aren't using buttons to control the sound inside plugin? If the user has a bluetooth device connected the sound should be going there automatically.

Bug which inspired this issue: sound does not go to to bluetooth devices automatically. It seems something is preventing it?

shamilovtim avatar Apr 16 '20 16:04 shamilovtim

If you were to remove all the calls to setSpeakerPhoneOn would that solve the problem? AFAIK that is the only place in which we might be setting the route....

slycoder avatar Apr 24 '20 03:04 slycoder

@shamilovtim did you get bluetooth working without manual intervention? Having the same issue.

owenadley avatar Dec 15 '21 17:12 owenadley

Nope. I thought about making a PR but had no time

shamilovtim avatar Dec 15 '21 20:12 shamilovtim