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.
In case of success the audio device changes, and the AudioDeviceEventTypes.DeviceChanged event is triggered.
To select an audio device: