getDeviceInfo method

  1. @override
NERtcDesktopDeviceInfo getDeviceInfo(
  1. int index
)
override

获取设备信息

Implementation

@override
NERtcDesktopDeviceInfo getDeviceInfo(int index) {
  Map<String, dynamic> convertJson = {
    "method": InvokeMethod.kNERtcGetDeviceInfo,
    "type": type.index,
    "usage": this.usage.index,
    "index": index
  };
  final result = InvokeMethod1_(jsonEncode(convertJson));
  return NERtcDesktopDeviceInfo.fromJson(jsonDecode(result));
}