setOutputDevice method

Future<void> setOutputDevice(
  1. String deviceId
)

Sets device with deviceId as a currently used output device.

Implementation

Future<void> setOutputDevice(String deviceId) async {
  if (outputDeviceId.value != deviceId) {
    outputDeviceId.value = deviceId;
    await _setOutputDevice();
  }
}