开发者平台 / 视频管理系统(VMS)/ API功能接口定义 / 球机控制
4.7.8 修改高速球机的巡航点配置
接口说明:
名称 | 内容 | |
---|---|---|
URL | https://xxx/tums/ptz/v1/modifyTour | |
功能说明 | 修改高速球机的巡航点配置 | |
使用限制 | 无 |
请求参数:
参数名称 | 参数描述 | |
---|---|---|
id String | 设备索引 | |
tourId String | 巡航点索引 | |
tourName String | 新增巡航点名称 可选 | |
recurringTime String | 最大巡航次数 可选 | |
recurringDuration String | 最长巡航时间 单位毫秒 可选 | |
presetIds List<String> | 预置点索引数组 | |
times List<String> |
在每个预置点停留的时间 单位毫秒 | |
speedPans List<String> |
巡航到该预置点的pan方向速度 如果坐标系含该方向则存在该项,不然无该项。 | |
speedTilts List<String> |
巡航到该预置点的tilt方向速度 如果坐标系含该方向则存在该项,不然无该项。 | |
speedZooms List<String> |
巡航到该预置点的zoom方向速度 如果坐标系含该方向则存在该项,不然无该项。 |
返回参数:
参数名称 | 参数描述 | |
---|---|---|
error_code | 返回码,0 – 成功,其他- 失败,具体请参考返回码章节 |
代码示例
https://xxx/tums/ptz/v1/modifyTour request: { "id" : "1", "tourId" : "1", "tourName" : "tour_1", "recurringTime" : "10", "recurringDuration" : "36000", "tourName" : "tour_1", "presetIds" : ["2", "3", "1"], "times" : ["15000", "15000", "15000"], "speedPans" : ["0.750000", "0.750000", "0.750000"], "speedTilts" : ["0.750000", "0.750000", "0.750000"], "speedZooms" : ["0.750000", "0.750000", "0.750000"]} response: { "error_code": 0 }