getAudioDevicesList method

Future<List<HMSAudioDevice>> getAudioDevicesList()

Method to get available audio devices

Refer audio output routing guide here

Implementation

Future<List<HMSAudioDevice>> getAudioDevicesList() async {
  List result =
      await PlatformService.invokeMethod(PlatformMethod.getAudioDevicesList);
  return result
      .map((e) => HMSAudioDeviceValues.getHMSAudioDeviceFromName(e))
      .toList();
}