selectAudioOutput method
Selects the audio output device with the given deviceId.
Implementation
@override
Future<bool> selectAudioOutput(String deviceId) async {
try {
final success = await methodChannel
.invokeMethod<bool>('selectAudioOutput', {'deviceId': deviceId})
.timeout(methodTimeout);
return success ?? false;
} catch (e, stack) {
debugPrint('AudioPicker: selectAudioOutput error: $e\n$stack');
return false;
}
}