voximplant / react-native-voximplant

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

Using only for audio routing #184

Open Bayramito opened 2 weeks ago

Bayramito commented 2 weeks ago

Is there any chance to use only for audio routing ? Like get and set audio routes?

Is this possible?

YuliaGrigorieva commented 2 weeks ago

@Bayramito

Could you please provide more details regarding your question?

What do you mean by "audio routing"? Android and iOS platforms have different audio system and different API to manage audio devices. Voximplant React Native SDK provides a common API to select an audio device and monitor audio device changes such as Bluetooth headset connection/disconnection or wired devices plug/unplug.

Using only for audio routing

Do you mean that you would like to use the SDK for audio device management without using other functionality the SDK provides?

Best regards, Yulia Grigorieva

Bayramito commented 2 weeks ago

@Bayramito

Could you please provide more details regarding your question?

What do you mean by "audio routing"? Android and iOS platforms have different audio system and different API to manage audio devices. Voximplant React Native SDK provides a common API to select an audio device and monitor audio device changes such as Bluetooth headset connection/disconnection or wired devices plug/unplug.

Using only for audio routing

Do you mean that you would like to use the SDK for audio device management without using other functionality the SDK provides?

Best regards, Yulia Grigorieva

Kind of yeah.. I wan’t to use only these 2 methods. But selectAudioDevice is not working on Android on me? Is there any specific requirement for it?

YuliaGrigorieva commented 2 weeks ago

Hello!

There are some limitations for both platforms. You can check them in the following docs:

Also, it is worth noting that audio device management in the Voximplant SDKs considers a call state made using the Voximplant platform. Using Voximplant SDK API for audio routing only may result in unpredictable behavior since other SDks may make the OS trigger system events for audio subsystem and these events may be handled incorrectly due to a different call state in the Voximplant SDK and other SDK.

Best regards, Yulia Grigorieva