setAudioDevice method

Future<void> setAudioDevice(
  1. AudioDevice audioDevice
)

Sets the current AudioDevice for audio output.

  • Currently selected AudioDevice can be accessed using state.audioDevice or stream.audioDevice.
  • The list of currently available AudioDevices can be obtained accessed using state.audioDevices or stream.audioDevices.

Implementation

Future<void> setAudioDevice(AudioDevice audioDevice) async {
  return platform?.setAudioDevice(audioDevice);
}