getDevice method
获取设备 id 和 name
Implementation
@override
NERtcDesktopDevice getDevice(int index) {
Map<String, dynamic> convertJson = {
"method": InvokeMethod.kNERtcGetDevice,
"type": type.index,
"usage": this.usage.index,
"index": index
};
final result = InvokeMethod1_(jsonEncode(convertJson));
return NERtcDesktopDevice.fromJson(jsonDecode(result));
}