getAvailableAudioOutputRoute method
Get the available audio output route.
The function is only available for iOS platform.
Return List of the audio output route if the function succeeds.
Implementation
@override
Future<List<ZoomVideoSdkAudioDevice>?> getAvailableAudioOutputRoute() async {
if (!Platform.isIOS) {
throw UnimplementedError('getAvailableAudioOutputRoute() is only implemented for iOS.');
}
var audioDeviceListString = await methodChannel
.invokeMethod<String?>('getAvailableAudioOutputRoute')
.then<String?>((String? value) => value);
var audioDeviceListJson = jsonDecode(audioDeviceListString!) as List;
List<ZoomVideoSdkAudioDevice> audioDeviceList = audioDeviceListJson
.map((languageJson) =>
ZoomVideoSdkAudioDevice.fromJson(languageJson))
.toList();
return audioDeviceList;
}