# 获取窗口信息

该接口可以获取指定设备的屏幕分组窗口信息。

# 请求路径

{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"
}

# 详细说明