getDeviceList 接口

获取当前节目中所有可控制的 PTZ 设备。

请求方式

POST/GET http://ip/V1.0/ptz/getDeviceList

请求数据

返回数据

{
    "status": 0,
    "message": "SUCCESS",
    "current": "",
    "deviceList": [
        {
            "id": "fcd51e30551e4795879c8bdc8f5397cd",
            "isSupportPtz": true,
            "controlType": 102,
            "layerName": "PHONE CAMERA - Camera #1"
        },
        {
            "id": "2ccca046b59543bd931ad343f07445c5",
            "isSupportPtz": true,
            "controlType": 102,
            "layerName": "PHONE CAMERA - Camera #2"
        }
    ]
}
属性 类型 说明
status Int 业务状态码。0:成功
message String 业务状态描述。0:成功
current String 当前控制的 PTZ 设备 ID
deviceList Array of PtzDevice 可用的 PTZ 设备列表

PtzDevice

属性 类型 说明
id String PTZ 设备 ID
layerName String PTZ 设备显示名称
controlType Int PTZ 设备类型
100: Visca UDP
102: 手机摄像头
103: UVC

|isSupportPtz |Boolean |是否支持 PTZ 控制
true:支持; false:不支持 |

HTTP Status Code

与“”相关结果约

    找不到与“”相关的结果