setAudioDevice method
Set audio device (Android internal use)
Implementation
@override
Future<void> setAudioDevice(String deviceId) async {
try {
await methodChannel.invokeMethod<void>(
'setAudioDevice',
{'deviceId': deviceId},
);
} catch (e) {
debugPrint('setAudioDevice error: $e');
// Device switching is important, but we don't want to break the app
// if it fails. Log the error and continue silently.
}
}