voximplant / react-native-voximplant

Voximplant mobile SDK for React Native (iOS/Android)
http://voximplant.com
205 stars 39 forks source link

Choose a different default audio device #70

Closed sanjaypojo closed 4 years ago

sanjaypojo commented 5 years ago

Currently, the audio device defaults to EARPIECE, but we'd like it to default to SPEAKER. We have a workaround to change the audio device once the call is connected. But it would be nice to be able to set this upfront. If we currently set the audio device when there are no calls, it interferes with background music playback from other apps etc.

YuliaGrigorieva commented 5 years ago

Hello!

Thank you for the feature request, I will discuss it with my team.

Currently our AudioDeviceManager is designed to be used to manage audio devices during the call, it should not affect audio settings if there are no calls at the moment. Audio device selection logic is specific on each platform and also depends on audio device connected such as bluetouth or wired headset.

If we currently set the audio device when there are no calls, it interferes with background music playback from other apps etc.

Could you please provide more details about this issue? What platform do you observe the issue? Could you please provide exact steps to reproduce the issue:

Best regards, Yulia Grigorieva

sanjaypojo commented 5 years ago

Hi @YuliaGrigorieva, here are the details you requested:

Platform: iOS

Replicate using the following steps: (1) Play a song on Spotify. Connect bluetooth headphones and start listening. (2) In your app, set the audio device to speaker on load (even though no call is made)

The music will start dropping and reconnecting continuously.

YuliaGrigorieva commented 5 years ago

Hello!

Thank you for the provided steps. Could you please also let me know:

Best regards, Yulia Grigorieva

sanjaypojo commented 5 years ago

Sure, here are the details:

YuliaGrigorieva commented 5 years ago

Hello, @sanjaypojo!

Unfortunately, I was not able to reproduce the issue on our demo application with the scenario provided.

Could you please confirm that you are able to reproduce it with the demo app? If so, could you please contact us at support@voximplant.com and provide Voximplant SDK logs from Xcode output?

Best regards, Yulia Grigorieva