getAudioInputDevice method
Implementation
@override
Future<IoDevice?> getAudioInputDevice() async {
try {
final mediaTrack = _jsPublisher.getAudioSource();
if (mediaTrack == null) {
return null;
}
return IoDevice(
id: mediaTrack.id,
label: mediaTrack.label,
type: IoDeviceType.audioInput,
);
} catch (e) {
debugPrint('Error getting audio input device for publisher: $e');
return null;
}
}