getAudioDeviceList method
Implementation
Future<List> getAudioDeviceList(int type) async {
var result = await (() {
Map completerMap = createCompleter();
ZegoFlutterEngine.instance.getAudioDeviceList(
type, completerMap["success"], completerMap["fail"]);
return completerMap["completer"].future;
})();
return formatDeviceList(jsonDecode(result));
}