# 获取窗口信息
该接口可以获取指定设备的屏幕分组窗口信息。
# 请求路径
{CLTPlatform-ip}:8086/processor/getWindowInfo
- 请求地址替换为对应的 ip 地址
- 请求端口号为
8086
# 请求协议
HTTP
# 请求方法
POST
# 请求参数
- 请求体的
Content-Type
请设置为application/json
参数名 | 说明 | 必填 | 类型 | 数据字典 | 限制 | 示例 |
---|---|---|---|---|---|---|
command | 指令类型 | 是 | [string] | processor/getWindowInfo | ||
data | 数据 | 是 | [object] | |||
data>>index | 发送器序号(从0开始) | 是 | [int] | |||
data>>groupIndex | 屏幕分组序号 | 是 | [int] |
# 请求示例
{
"command": "processor/getWindowInfo",
"data": {
"index": 0,
"groupIndex": 1
}
}
# 返回结果
参数名 | 说明 | 必填 | 类型 | 数据字典 | 限制 | 示例 |
---|---|---|---|---|---|---|
command | 指令类型 | 是 | [string] | |||
code | 状态码 | 是 | [int] | |||
message | 消息 | 是 | [string] | |||
data | 数据 | 是 | [object] | |||
data>>windowList | 窗口列表 | 是 | [array] | |||
data>>windowList>>windowIndex | 窗口序号 | 是 | [int] | |||
data>>windowList>>videoMark | 信号标识 | 是 | [object] | |||
data>>windowList>>videoMark>>slotNum | 扩展槽序号 | 是 | [int] | |||
data>>windowList>>videoMark>>sourceType | 信号类型 | 是 | [string] | HDMI2.0 | ||
data>>windowList>>videoMark>>sourceIndex | 信号序号,(同一板卡上相同信号的序号,从0开始) | 是 | [int] | |||
data>>windowList>>videoMark>>sourceId | 信号ID,(同一板卡上的信号序号) | 是 | [int] | |||
data>>windowList>>position | 是 | [object] | ||||
data>>windowList>>position>>x | 窗口水平位置x | 是 | [int] | |||
data>>windowList>>position>>y | 窗口垂直位置y | 是 | [int] | |||
data>>windowList>>position>>width | 窗口宽度 | 是 | [int] | |||
data>>windowList>>position>>height | 窗口高度 | 是 | [int] |
# 返回示例
{
"code": 20000,
"command": "processor/getWindowInfo",
"data": {
"windowList": [{
"position": {
"height": 1080,
"width": 1920,
"x": 0,
"y": 0
},
"videoMark": {
"slotNum": 4099,
"sourceId": 0,
"sourceIndex": 0,
"sourceType": "HDMI"
},
"windowIndex": 0
}, {
"position": {
"height": 1080,
"width": 1920,
"x": 804,
"y": 1080
},
"videoMark": {
"slotNum": 4099,
"sourceId": 1,
"sourceIndex": 1,
"sourceType": "HDMI"
},
"windowIndex": 1
}, {
"position": {
"height": 1080,
"width": 1920,
"x": 79,
"y": 695
},
"videoMark": {
"slotNum": 4099,
"sourceId": 1,
"sourceIndex": 1,
"sourceType": "HDMI"
},
"windowIndex": 2
}]
},
"message": "Common_Success"
}