接口说明
控制云台镜头的变焦、变倍及光圈大小
命令command=1时,云台会开启动作,不调command=0会一直转动
异步发送操作指令到设备端,需开启动作与停止动作间隔一定时间,保证顺序执行
不推荐多用户同时操作同一个设备,多用户操作以最后一次操作为准
前置条件
前置条件
设备必须是球机
接口配套版本信息
智能物联综合管理平台iConnection Center V5.0.5及以上版本
视频业务系统V1.0.1及以上版本
接口版本
1.0.0
接口更新说明
无
接口URL
/evo-apigw/admin/API/DMS/Ptz/OperateCamera
请求类型
POST
数据格式
application/json
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
data | true | Object | Json对象 |
+channelId | true | string | 视频通道编码,第一个$后数字代表通道类型,必须是1,且摄像头类型需是球机(cameraType字段必须是2) |
+operateType | true | string | 操作类型:1=变倍,2=变焦,3=光圈 |
+direct | true | string | 方向:1=增加,2=减小 |
+step | true | string | 转动速度(1-8的整数) ,越大代表越快 |
+command | true | string | 命令:0=停止动作,1=开启动作;注意事项:停止动作需与开启动作时的其他参数需保持一致,否则无法停止 |
+extend | true | string | 扩展数据 |
请求参数示例
{
"data": {
"channelId": "1004325$1$0$0",
"operateType": "1",
"direct": "1",
"step": "1",
"command": "1",
"extend": ""
}
}
返回参数
名称 | 类型 | 说明 |
---|---|---|
code | int | 错误代码,code=1000代表成功,非1000代表失败,参考附录-错误码 |
desc | string | 结果描述 |
data | string | Json串,默认为空 |
+result | string | 操作结果:0=失败,1=成功,失败时参考LockUser |
+lockUser | string | 锁定用户信息 |
++userName | string | 控制失败时,持有锁的用户名称 |
++userLevel | string | 控制失败时,持有锁的用户级别 |
++lowerDomain | int | 下级域地址,null或者空字符串表示是本级,有地址时表示下级 |
返回参数示例(成功)
{
"code": 1000,
"desc": "Success",
"data": {
"result": "1",
"lockUser": null
}
}
{
"code": 1000,
"desc": "Success",
"data": {
"result": "0",
"lockUser": {
"userName": "system",
"userLevel": "1",
"lowerDomain": null
}
}
}
返回参数示例(失败)
{
"code": 1001,
"desc": "Failed"
}
接口说明
控制云台进行上下左右等八个方向的移动 命令command=1时,云台会开启动作,不调command=0会一直转动
异步发送操作指令到设备端,需开启动作与停止动作间隔一定时间,保证顺序执行
不推荐多用户同时操作同一个设备,多用户操作以最后一次操作为准
前置条件
前置条件
设备必须是球机
接口配套版本信息
智能物联综合管理平台iConnection Center V5.0.5及以上版本
视频业务系统V1.0.1及以上版本
接口版本
1.0.0
接口更新说明
无
接口URL
/evo-apigw/admin/API/DMS/Ptz/OperateDirect
请求类型
POST
数据格式
application/json
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
data | true | Object | Json对象 |
+channelId | true | string | 视频通道编码,第一个$后数字代表通道类型,必须是1,且摄像头类型需是球机(cameraType字段必须是2) |
+direct | true | string | 方向:1=上,2=下,3=左,4=右,5=左上,6=左下,7=右上,8=右下 |
+stepX | true | string | 水平转动速度(1-8的整数),越大代表越快 |
+stepY | true | string | 垂直转动速度(1-8的整数),越大代表越快 |
+command | true | string | 命令:0=停止, 1=开启 |
+extend | true | string | 扩展数据 |
请求参数示例
{
"data": {
"channelId": "1004325$1$0$0",
"direct": "1",
"stepX": "6",
"stepY": "6",
"command": "1",
"extend": ""
}
}
返回参数
名称 | 类型 | 说明 |
---|---|---|
code | int | 错误代码,code=1000代表成功,非1000代表失败,参考附录-错误码 |
desc | string | 结果描述 |
data | string | Json串,默认为空 |
+result | string | 操作结果:0=失败,1=成功,失败时参考LockUser |
+lockUser | string | 锁定用户信息 |
++userName | string | 控制失败时,持有锁的用户名称 |
++userLevel | string | 控制失败时,持有锁的用户级别 |
++lowerDomain | int | 下级域地址,null或者空字符串表示是本级,有地址时表示下级 |
返回参数示例(成功)
{
"code": 1000,
"desc": "Success",
"data": {
"result": "1",
"lockUser": null
}
}
{
"code": 1000,
"desc": "Success",
"data": {
"result": "0",
"lockUser": {
"userName": "system",
"userLevel": "1",
"lowerDomain": null
}
}
}
返回参数示例(失败)
{
"code": 1001,
"desc": "Failed"
}
接口说明
控制云台的巡航、循迹及灯光等功能 命令command=1时,云台会开启动作,不调command=0会一直转动
异步发送操作指令到设备端,需开启动作与停止动作间隔一定时间,保证顺序执行
不推荐多用户同时操作同一个设备,多用户操作以最后一次操作为准
前置条件
前置条件
设备必须是球机
接口配套版本信息
智能物联综合管理平台iConnection Center V5.0.5及以上版本
视频业务系统V1.0.1及以上版本
接口版本
1.0.0
接口更新说明
无
接口URL
/evo-apigw/admin/API/DMS/Ptz/OperateFunction
请求类型
POST
数据格式
application/json
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
data | true | Object | Json对象 |
+channelId | true | string | 视频通道编码,第一个$后数字代表通道类型,必须是1,且摄像头类型需是球机(cameraType字段必须是2) |
+operateType | true | string | operateType操作类型 |
+target | true | string | 操作对象:仅当operateType=[14,19,20,21]时有意义,其他情况下为0 |
+command | true | string | 命令:0=停止, 1=开启,仅当operateType=[11,12,13,14,15,18,19,20,21]时有意义,其他情况下为0 |
+extend | true | string | 扩展数据 |
请求参数示例
{
"data": {
"channelId": "1018084$1$0$0",
"operateType": "21",
"target": "0",
"command": "1",
"extend": ""
}
}
返回参数
名称 | 类型 | 说明 |
---|---|---|
code | int | 错误代码,code=1000代表成功,非1000代表失败,参考附录-错误码 |
desc | string | 结果描述 |
data | string | Json串,默认为空 |
+result | string | 操作结果:0=失败,1=成功,失败时参考LockUser |
+lockUser | string | 锁定用户信息 |
++userName | string | 控制失败时,持有锁的用户名称 |
++userLevel | string | 控制失败时,持有锁的用户级别 |
++lowerDomain | int | 下级域地址,null或者空字符串表示是本级,有地址时表示下级 |
返回参数示例(成功)
{
"code": 1000,
"desc": "Success",
"data": {
"result": "1",
"lockUser": null
}
}
{
"code": 1000,
"desc": "Success",
"data": {
"result": "0",
"lockUser": {
"userName": "system",
"userLevel": "10",
"lowerDomain": null
}
}
}
返回参数示例(失败)
{
"code": 1001,
"desc": "Failed"
}
接口说明
获取云台的预置点信息
前置条件
前置条件
设备必须是球机
接口配套版本信息
智能物联综合管理平台iConnection Center V5.0.5及以上版本
视频业务系统V1.0.1及以上版本
接口版本
1.0.0
接口更新说明
无
接口URL
/evo-apigw/admin/API/DMS/Ptz/GetPresetPoints
请求类型
POST
数据格式
application/json
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
data | true | Object | Json对象 |
+channelId | true | string | 视频通道编码,第一个$后数字代表通道类型,必须是1,且摄像头类型需是球机(cameraType字段必须是2) |
请求参数示例
{
"data": {
"channelId": "1004596$1$0$0"
}
}
返回参数
名称 | 类型 | 说明 |
---|---|---|
code | int | 错误代码,code=1000代表成功,非1000代表失败,参考附录-错误码 |
desc | string | 结果描述 |
data | string | Json串 |
+channelId | string | 通道编码 |
+presetPoints | array | 预置点信息 |
++id | int | 预置点id |
++channelId | string | 通道编码 |
++presetPointCode | string | 预置点编码 |
++presetPointName | string | 预置点名称 |
返回参数示例(成功)
{
"code": 1000,
"desc": "Success",
"data": {
"presetPoints": [
{
"id": 1,
"channelId": "1004596$1$0$0",
"presetPointCode": "1",
"presetPointName": "preset1"
},
{
"id": 2,
"channelId": "1004596$1$0$0",
"presetPointCode": "2",
"presetPointName": "2"
}
],
"channelId": "1004596$1$0$0"
}
}
返回参数示例(失败)
{
"code": 1001,
"desc": "Failed"
}
接口说明
新增云台预置点、更新云台预置点、删除云台预置点或云台预置点定位
前置条件
设备必须是球机
接口配套版本信息
智能物联综合管理平台iConnection Center V5.0.5及以上版本
视频业务系统V1.0.1及以上版本
接口版本
1.0.0
接口更新说明
无
接口URL
/evo-apigw/admin/API/DMS/Ptz/OperatePresetPoint
请求类型
POST
数据格式
application/json
请求参数
注意:需要在请求头参数中增加User-Id: 1
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
data | true | Object | Json对象 |
+channelId | true | string | 视频通道编码,第一个$后数字代表通道类型,必须是1,且摄像头类型需是球机(cameraType字段必须是2) |
+presetPointCode | true | string | 预置点编码 |
+presetPointName | true | string | 预置点名称,更新时只支持更新预置点名称,其他参数不支持更新 |
+operateType | true | string | 操作类型:1=定位,2=添加/更新,3=删除 |
请求参数示例
{
"data": {
"presetPointName": "point2",
"presetPointCode": "2",
"channelId": "1004596$1$0$0",
"operateType": "1"
}
}
返回参数
名称 | 类型 | 说明 |
---|---|---|
code | int | 错误代码,code=1000代表成功,非1000代表失败,参考附录-错误码 |
desc | string | 结果描述 |
data | string | Json串,默认为空 |
+result | string | 操作结果:0=失败,1=成功,失败时参考LockUser |
+lockUser | string | 锁定用户信息 |
++userName | string | 控制失败时,持有锁的用户名称 |
++userLevel | string | 控制失败时,持有锁的用户级别 |
++lowerDomain | int | 下级域地址,null或者空字符串表示是本级,有地址时表示下级 |
返回参数示例(成功)
{
"code": 1000,
"desc": "Success",
"data": {
"result": "1",
"lockUser": null
}
}
{
"code": 1000,
"desc": "Success",
"data": {
"result": "0",
"lockUser": {
"userName": "system",
"userLevel": "1",
"lowerDomain": null
}
}
}
返回参数示例(失败)
{
"code": 1001,
"desc": "Failed"
}
接口说明
获取云台的巡航线信息
前置条件
前置条件
设备必须是球机
接口配套版本信息
智能物联综合管理平台iConnection Center V5.0.5及以上版本
视频业务系统V1.0.1及以上版本
接口版本
1.0.0
接口更新说明
无
接口URL
/evo-apigw/admin/API/DMS/Ptz/GetCruises
请求类型
POST
数据格式
application/json
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
data | true | Object | Json对象 |
+channelId | true | string | 视频通道编码,第一个$后数字代表通道类型,必须是1,且摄像头类型需是球机(cameraType字段必须是2) |
请求参数示例
{
"data": {
"channelId": "1008005$1$0$0"
}
}
返回参数
名称 | 类型 | 说明 |
---|---|---|
code | int | 错误代码,code=1000代表成功,非1000代表失败,参考附录-错误码 |
desc | string | 结果描述 |
data | string | Json串 |
+channelId | string | 通道编码 |
+cruises | array | 巡航线信息 |
++channelId | string | 通道编码 |
++cruiseCode | string | 巡航线编码 |
++cruiseName | string | 巡航线名称 |
++points | array | 预置点信息列表 |
+++code | string | 预置点编码 |
+++id | int | 预置点id |
+++stay | string | 预置点停留时间 |
返回参数示例(成功)
{
"code": "1000",
"data": {
"cruises": [
{
"pointId": 1,
"cruiseCode": "1",
"cruiseName": "cece",
"channelId": "1000170$1$0$0",
"points": [
{
"code": "1",
"id": 1,
"stay": "15"
}
]
},
{
"pointId": 3,
"cruiseCode": "1",
"cruiseName": "2-3-4",
"channelId": "1002241$1$0$0",
"points": [
{
"code": "2",
"id": 1,
"stay": "10"
},
{
"code": "3",
"id": 2,
"stay": "10"
},
{
"code": "4",
"id": 3,
"stay": "10"
}
]
}
],
"channelId": "1002430$1$0$0"
},
"desc": "Success"
}
返回参数示例(失败)
{
"code": 1001,
"desc": "Failed"
}
接口说明
保存云台巡航线,包含新增与修改,cruiseId与channelId存在则修改,否则新增处理
前置条件
设备必须是球机
接口配套版本信息
智能物联综合管理平台iConnection Center V5.0.5及以上版本
视频业务系统V1.0.1及以上版本
接口版本
1.0.0
接口更新说明
无
接口URL
/evo-apigw/admin/API/DMS/Cruise/SaveCruise
请求类型
POST
数据格式
application/json
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
data | true | Object | Json对象 |
- data | true | string | 巡航线XML数据 |
- channelId | true | string | 视频通道编码,第一个$后数字代表通道类型,必须是1,且摄像头类型需是球机(cameraType字段必须是2) |
巡航线XML Cruise属性:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
- id | true | string | 巡航线编码 |
- name | true | string | 巡航线名称 |
- pointId | true | string | 包含预置点个数 |
巡航线XML PrePoint属性:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
- id | true | string | 预置点id |
- code | true | string | 预置点编码 |
- stay | true | string | 预置点停留时间,范围(15-3600),默认15秒 |
请求参数示例
{
"data": {
"optional": "/evo-apigw/admin/API/DMS/Cruise/SaveCruise",
"data": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<CruiseConfig>\n\t<Cruise id=\"1\" name=\"2-3-4\" pointId=\"3\">\n\t\t<PrePoint id=\"1\" code=\"2\" stay=\"10\" />\n\t\t<PrePoint id=\"2\" code=\"3\" stay=\"10\" />\n\t\t<PrePoint id=\"3\" code=\"4\" stay=\"10\" />\n\t</Cruise>\n\t<Cruise id=\"2\" name=\"2-3-4-5-6\" pointId=\"5\">\n\t\t<PrePoint id=\"1\" code=\"2\" stay=\"10\" />\n\t\t<PrePoint id=\"2\" code=\"3\" stay=\"10\" />\n\t\t<PrePoint id=\"3\" code=\"4\" stay=\"10\" />\n\t\t<PrePoint id=\"4\" code=\"5\" stay=\"10\" />\n\t\t<PrePoint id=\"5\" code=\"6\" stay=\"10\" />\n\t</Cruise>\n\t<Cruise id=\"3\" name=\"1-2-3\" pointId=\"3\">\n\t\t<PrePoint id=\"1\" code=\"1\" stay=\"10\" />\n\t\t<PrePoint id=\"2\" code=\"2\" stay=\"10\" />\n\t\t<PrePoint id=\"3\" code=\"3\" stay=\"10\" />\n\t</Cruise>\n</CruiseConfig>\n",
"channelId": "1004596$1$0$0"
}
}
返回参数
名称 | 类型 | 说明 |
---|---|---|
code | int | 错误代码,code=1000代表成功,非1000代表失败,参考附录-错误码 |
desc | string | 结果描述 |
返回参数示例(成功)
{
"code": 1000,
"desc": "Success",
}
返回参数示例(失败)
{
"code": 1001,
"desc": "Failed"
}
接口说明
删除通道所有的巡航线
前置条件
设备必须是球机
接口配套版本信息
智能物联综合管理平台iConnection Center V5.0.5及以上版本
视频业务系统V1.0.1及以上版本
接口版本
1.0.0
接口更新说明
无
接口URL
/evo-apigw/admin/API/DMS/Cruise/DeleteCruise
请求类型
POST
数据格式
application/json
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
data | true | Object | Json对象 |
- channelId | true | string | 视频通道编码,第一个$后数字代表通道类型,必须是1,且摄像头类型需是球机(cameraType字段必须是2) |
请求参数示例
{
"data": {
"channelId": "1004596$1$0$0"
}
}
返回参数
名称 | 类型 | 说明 |
---|---|---|
code | int | 错误代码,code=1000代表成功,非1000代表失败,参考附录-错误码 |
desc | string | 结果描述 |
返回参数示例(成功)
{
"code": 1000,
"desc": "Success",
}
返回参数示例(失败)
{
"code": 1001,
"desc": "Failed"
}
云台巡航线的 operateType操作类型为14,操作方法接口详见:云台功能控制