getAudioOutputDevice method
Implementation
@override
Future<IoDevice?> getAudioOutputDevice() async {
try {
final jsDevice = await ot.getActiveAudioOutputDevice().toDart;
return IoDevice(
id: jsDevice.deviceId,
label: jsDevice.label,
type: IoDeviceType.audioOutput,
);
} catch (e) {
debugPrint('Error getting audio output device for publisher: $e');
return null;
}
}