开发者平台

TP-LINK官网首页
开发者平台 / 视频管理系统(VMS)/ API功能接口定义 / 球机控制

4.7.6 获取高速球机的巡航信息

接口说明:

名称 内容
URL https://xxx/tums/ptz/v1/getToursInfo
功能说明 获取高速球机的巡航信息
使用限制

请求参数:

参数名称 参数描述
id
String
设备索引
tourId
List<String>
巡航点索引列表

返回参数:

参数名称 参数描述
error_code 返回码,0 – 成功,其他- 失败,具体请参考返回码章节
result tourId
String
巡航点索引
presetIds
List<String>
预置点索引数组
times
List<String>
在每个预置点停留的时间
单位毫秒
speedPans
List<String>
巡航到该预置点的pan方向速度
如果坐标系含该方向则存在该项,不然无该项。
speedTilts
List<String>
巡航到该预置点的tilt方向速度
如果坐标系含该方向则存在该项,不然无该项。
speedZooms
List<String>
巡航到该预置点的zoom方向速度
如果坐标系含该方向则存在该项,不然无该项。

代码示例

          https://xxx/tums/ptz/v1/getToursInfo
          request:
          { 
              "id" : "1",
              "tourId" : ["1"] 
          }
          response:
          { 
              "result": [
                  {
                      "tourId": "1",
                      "presetIds": [
                          "1",
                          "2",
                          "3",
                          "1"
                      ],
                      "times": [
                          "15000",
                          "15000",
                          "15000",
                          "15000"
                      ],
                      "speedPans": [
                          "0.750000",
                          "0.750000",
                          "0.750000",
                          "0.750000"
                      ],
                      "speedTilts": [
                          "0.750000",
                          "0.750000",
                          "0.750000",
                          "0.750000"
                      ],
                      "speedZooms": [
                          "0.670000",
                          "0.670000",
                          "0.670000",
                          "0.670000"
                      ]
                  }
              ],
          "error_code": 0
          }