Rate this page:

Audio device management

The Hardware.AudioDeviceManager (React SDK) and VIAudioDeviceManager(Flutter SDK) classes allow:

  • getting all available audio devices,
  • getting currently selected audio device,
  • selecting an audio device,
  • handling active audio device changes and new audio devices (for example, Bluetooth headset or wired headset connection). These changes trigger the appropriate events.

All types of audio devices are represented in the Hardware.AudioDevice (React SDK) and VIAudioDevice (Flutter SDK) enums.

Note that there are platform-specific nuances in audio device management, see the details in the iOS and Android SDKs documentation.

In case of success the audio device changes, and the AudioDeviceEventTypes.DeviceChanged event is triggered.

To select an audio device:

selectAudioDevice

selectAudioDevice