开发者平台 / 视频管理系统(VMS)/ API功能接口定义 / 球机控制
4.7.5 获取高速球机的所有巡航列表
接口说明:
名称 | 内容 | |
---|---|---|
URL | https://xxx/tums/ptz/v1/getAllTours | |
功能说明 | 获取高速球机的所有巡航列表 | |
使用限制 | 无 |
请求参数:
参数名称 | 参数描述 | |
---|---|---|
id String | 设备索引 |
返回参数:
参数名称 | 参数描述 | |
---|---|---|
error_code | 返回码,0 – 成功,其他- 失败,具体请参考返回码章节 | |
result |
tourId List<String> | 字符串数组,返回的ID列表 |
tourNames List<String> | 字符串数组,返回的对应巡航的名称列表 | |
tourStates List<String> |
字符串数组,返回的状态列表 取值范围 idle: 不在巡航 touring: 正在巡航 paused: 巡航暂停 | |
maxTourNumber int | 高速球机支持的最大巡航数目 |
代码示例
https://xxx/tums/ptz/v1/getAllTours request: { "id" : "1", } response: { "result": { "tourId": [ "1", "2", "3", "4" ], "tourNames": [ "tour_1", "tour_2", "tour_3", "tour_4" ], "tourStates": [ "idle", "idle", "idle", "idle" ], "maxTourNumber": 8 }, "error_code": 0 }