其他分享
首页 > 其他分享> > HappyGBS GB28181信令服务 - 文档

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": "操作成功"

}

 

标签:信令,GB28181,channelId,HappyGBS,gb28181,api,deviceId,null,34020000001320000013
来源: https://www.cnblogs.com/chen1880/p/16413341.html