get-caps 接口
不同型号的设备规格有差异,比如 HDMI 4K Plus 和 HDMI Plus 支持的最大输入分辨率不同。调用此接口可以获取当前连接的设备规格。
请求方式
GET http://ip/mwapi?method=get-caps
| 参数 | 
说明 | 
| method | 
方法名称:get-caps | 
返回数据
{
  "status": 0,
  "max-input-width": 4096,
  "max-input-height": 2160,
  "max-output-width": 4096,
  "max-output-height": 2160,
  "has-input": true,
  "has-output": true,
  "has-loop-through": true,
  "has-fan": true,
  "has-input-edid": true,
  "has-output-edid": true,
  "has-sdcard": true,
  "has-ptz": true
}
| 属性 | 
说明 | 
| status | 
0:数据获取成功。返回其它值请参考 API 状态码。 | 
| max-input-width | 
显示输入信号水平方向的总像素数。 | 
| max-input-height | 
显示输入信号垂直方向的总行数。 | 
| max-output-width | 
设备输出信号水平方向的总像素数。 | 
| max-output-height | 
显示输出信号垂直方向的总行数。 | 
| has-input | 
设备是否有输入接口,有效值:true/false。 | 
| has-output | 
设备是否有输出接口,有效值:true/false。 | 
| has-loop-through | 
设备是否支持环出,有效值:true/false。 | 
| has-fan | 
设备是否有风扇,有效值:true/false。 | 
| has-sdcard | 
设备是否支持 SD 卡功能,有效值:true/false。 | 
| has-ptz | 
设备是否支持 PTZ 功能,有效值:true/false。 | 
| has-input-edid | 
设备是否支持输入端口 EDID,有效值:true/false。 | 
| has-output-edid | 
设备是否支持输出端口 EDID,有效值:true/false。 |