setAudioDevice method

Future<void> setAudioDevice(
  1. AudioDevice device
)

To change the Audio Device

Use the PlayerState to get all audio devices from this controller then you can select a AudioDevice and pass through the function.

Implementation

Future<void> setAudioDevice(AudioDevice device) async =>
    await _player.setAudioDevice(device);