switchAudioDevice method
Implementation
Future<void> switchAudioDevice(MediaDeviceInfo device) async {
audioOutputDevice = device;
await navigator.mediaDevices.selectAudioOutput(
AudioOutputOptions(
deviceId: audioOutputDevice!.deviceId,
),
);
}