getDevicesList method

Future<Map?> getDevicesList(
  1. int type
)

获取指定类型的设备列表(仅适用于macOS、Windows与web)

参数:

type 设备类型,指定要获取的设备类型。更多信息,请参见 TXMediaDeviceType 的定义。type 只能是 TRTCCloudDef.TXMediaDeviceTypeMicTRTCCloudDef.TXMediaDeviceTypeSpeakerTRTCCloudDef.TXMediaDeviceTypeCamera

Implementation

Future<Map?> getDevicesList(int type) {
  return _channel.invokeMethod('getDevicesList', {
    "type": type,
  });
}