HappyGBS GB28181信令服务 - 文档

2022/6/26 23:20:31

本文主要是介绍HappyGBS GB28181信令服务 - 文档,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

 

swagger 地址:http://127.0.0.1:5200/swagger/index.html

 

api/gb28181/list

 

功能:获取gb28181设备及通道信息

 

范例:

 

http://127.0.0.1:5200/api/gb28181/list

 

参数: 无

 

响应:

 

{

  "data": [

    {

      "deviceDto": {

        "id": 1,

        "deviceId": "34020000001320000013",

        "ip": "192.168.0.13",

        "port": 5060,

        "hearTime": "2022/6/26 6:38:34",

        "offTime": null,

        "status": "REGIST",

        "channelCount": 1,

        "channelDto": [

          {

            "id": 1,

            "deviceId": "34020000001320000013",

            "channelId": "34020000001320000013",

            "name": "IPdome",

            "manufacturer": "Hikvision",

            "address": "Address",

            "status": "ON",

            "rtspUrl_Live": "rtsp://192.168.0.46:554/rtp/2D165855",

            "flvUrl_Live": "http://192.168.0.46:80/rtp/2D165855.live.flv",

            "ssrc_Live": "2D165855",

            "rtspUrl_History": null,

            "flvUrl_History": null,

            "ssrc_History": null,

            "type": "EQUIP"

          }

        ]

      }

    }

  ],

  "code": 0,

  "msg": "操作成功"

}

 

 

api/gb28181/control

 

功能:PTZ控制

 

范例:

http://localhost:5200/api/gb28181/control?deviceId=34020000001320000013&channelId=34020000001320000013&cmd=7&speed=8&preset=0

 

参数:

参数名

必传

含义

deviceId

设备号

channelId

通道号

cmd

操作类型

0:停止;

1:上;

2:左上;

3:右上;

4:下;

5:左下;

6:右下;

7:左;

8:右;

9:变焦+;

10:变焦-;

11:变倍+;

12:变倍-;

13:光圈+;

14:光圈-;

15:设置预置位;

16:请往预置点;

17:删除预置位

speed

速度

preset

预置点

 

响应:

 

{"data":true,"code":0,"msg":"操作成功"}

 

 

api/gb28181/control

 

功能:PTZ控制

 

范例:

http://localhost:5200/api/gb28181/control?deviceId=34020000001320000013&channelId=34020000001320000013&cmd=7&speed=8&preset=0

 

参数:

参数名

必传

含义

deviceId

设备号

channelId

通道号

cmd

操作类型

0:停止;

1:上;

2:左上;

3:右上;

4:下;

5:左下;

6:右下;

7:左;

8:右;

9:变焦+;

10:变焦-;

11:变倍+;

12:变倍-;

13:光圈+;

14:光圈-;

15:设置预置位;

16:请往预置点;

17:删除预置位

speed

速度

preset

预置点

 

 

api/gb28181/live

 

功能:在线直播

 

范例:

http://localhost:5200/api/gb28181/live?deviceId=34020000001320000013&channelId=34020000001320000013

 

参数:

参数名

必传

含义

deviceId

设备号

channelId

通道号

 

响应

 

{

"data": {

"taskNote": "34020000001320000013-34020000001320000013-在线直播",

"taskResult": "执行成功",

"isExcuted": true,

"error": null,

"rtspUrl": "rtsp://192.168.0.46:554/rtp/3A012A3E",

"flvUrl": "http://192.168.0.46:80/rtp/3A012A3E.live.flv",

"ssrc": "3A012A3E",

"autioRtpIp": "",

"autioRtpPort": 0,

"lstRecordItem": null

},

"code": 0,

"msg": "操作成功"

}

 

api/gb28181/history

 

功能:录像点播

 

范例:

http://localhost:5200/api/gb28181/history?deviceId=34020000001320000013&channelId=34020000001320000013&startTime=1656172800&endTime=1655406000

 

参数:

参数名

必传

含义

deviceId

设备号

channelId

通道号

startTime

起始时间戳

endTime

结束时间戳

 

响应

 

{

"data": {

"taskNote": "34020000001320000013-34020000001320000013-录像点播",

"taskResult": "执行成功",

"isExcuted": true,

"error": null,

"rtspUrl": "rtsp://192.168.0.46:554/rtp/3A012A3E",

"flvUrl": "http://192.168.0.46:80/rtp/3A012A3E.live.flv",

"ssrc": "3A012A3E",

"autioRtpIp": "",

"autioRtpPort": 0,

"lstRecordItem": null

},

"code": 0,

"msg": "操作成功"

}

 

{

"data": {

"taskNote": "34020000001320000013-34020000001320000013-录像点播",

"taskResult": "执行失败:任务34020000001320000013-34020000001320000013-录像点播,执行超时",

"isExcuted": false,

"error": "任务34020000001320000013-34020000001320000013-录像点播,执行超时",

"rtspUrl": null,

"flvUrl": null,

"ssrc": null,

"autioRtpIp": "",

"autioRtpPort": 0,

"lstRecordItem": null

},

"code": 0,

"msg": "操作成功"

}

 



这篇关于HappyGBS GB28181信令服务 - 文档的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程