setAudioDevice method
Sets the current AudioDevice for audio output.
- Currently selected AudioDevice can be accessed using
state.audioDevice
orstream.audioDevice
. - The list of currently available AudioDevices can be obtained accessed using
state.audioDevices
orstream.audioDevices
.
Implementation
Future<void> setAudioDevice(AudioDevice audioDevice) async {
return platform?.setAudioDevice(audioDevice);
}