setAudioDevice method
- MicrophoneDeviceInfo device
Routes audio to device without changing the mute state. Android and
iOS expose one audio route, so this is also the microphone.
Implementation
Future<void> setAudioDevice(MicrophoneDeviceInfo device) async {
await _backend.setAudioDevice(device.deviceId);
setSelectedMicrophone(device);
}