gb28181录制回放--recordinfo信令流程

简介:

    该系列文章主要介绍,上级域对国标平台进行预览/回看等流程的信令交互。

    一个简单的gb28181录制回放流程:

  1. 接收下级域的注册请求

  2. 发送recordinfo请求,获取设备的录像信息

  3. 选择录像进行回放

recordinfo流程:

  1. 向下级域发送recordinfo请求
  2. 下级域回复200
  3. 下级域回复录像信息
  4. 上级域回复200

信令流程:

向下级域发送recordinfo请求:

注:目的域id不是,下级平台的id,是要访问的设备的id

MESSAGE sip:34020000001320000002@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.30.173:5060;rport;branch=z9hG4bK686887582
From: <sip:34020000002000000001@3402000000>;tag=734887582
To: <sip:34020000001320000002@3402000000>
Call-ID: 984887582
CSeq: 175 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: LiveGBS v200529
Content-Length: 279

<?xml version="1.0" encoding="UTF-8"?>
<Query>
    <CmdType>RecordInfo</CmdType>
    <SN>840887582</SN>
    <DeviceID>34020000001320000002</DeviceID>
    <StartTime>2020-06-02T12:00:00</StartTime>
    <EndTime>2020-06-02T15:59:00</EndTime>
    <Type>all</Type>
</Query>

下级域回复200:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.30.173:5060;rport=5060;branch=z9hG4bK686887582
From: <sip:34020000002000000001@3402000000>;tag=734887582
To: <sip:34020000001320000002@3402000000>;tag=815147343
Call-ID: 984887582
CSeq: 175 MESSAGE
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length: 0

下级域回复录像信息:

MESSAGE sip:34020000002000000001@3402000000 SIP/2.0
Via: SIP/2.0/UDP 192.168.30.228:5060;rport;branch=z9hG4bK242789517
From: <sip:34020000001110000001@3402000000>;tag=1702343125
To: <sip:34020000002000000001@3402000000>
Call-ID: 1189630420
CSeq: 20 MESSAGE
Content-Type: Application/MANSCDP+xml
Max-Forwards: 70
User-Agent: Embedded Net DVR/NVR/DVS
Content-Length:  2689

<?xml version="1.0" encoding="gb2312"?>
<Response>
<CmdType>RecordInfo</CmdType>
<SN>840887582</SN>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<SumNum>9</SumNum>
<RecordList Num="9">
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591069694_1591071812</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T11:48:14</StartTime>
<EndTime>2020-06-02T12:23:32</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591071812_1591073930</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T12:23:32</StartTime>
<EndTime>2020-06-02T12:58:50</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591073930_1591076048</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T12:58:50</StartTime>
<EndTime>2020-06-02T13:34:08</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591076048_1591078166</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T13:34:08</StartTime>
<EndTime>2020-06-02T14:09:26</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591078166_1591080284</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T14:09:26</StartTime>
<EndTime>2020-06-02T14:44:44</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591080284_1591081343</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T14:44:44</StartTime>
<EndTime>2020-06-02T15:02:23</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591081425_1591082484</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T15:03:45</StartTime>
<EndTime>2020-06-02T15:21:24</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591082484_1591084602</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T15:21:24</StartTime>
<EndTime>2020-06-02T15:56:42</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
<Item>
<DeviceID>34020000001320000002</DeviceID>
<Name>Camera 01</Name>
<FilePath>1591084602_1591084721</FilePath>
<Address>Address 1</Address>
<StartTime>2020-06-02T15:56:42</StartTime>
<EndTime>2020-06-02T15:58:41</EndTime>
<Secrecy>0</Secrecy>
<Type>time</Type>
</Item>
</RecordList>
</Response>

上级域回复200:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.30.228:5060;rport=5060;received=192.168.30.228;branch=z9hG4bK242789517
From: <sip:34020000001110000001@3402000000>;tag=1702343125
To: <sip:34020000002000000001@3402000000>;tag=405887934
CSeq: 20 MESSAGE
Call-ID: 1189630420
User-Agent: LiveGBS v200529
Content-Length: 0

 

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1、支持国标GB28181平台、国标GB28181 IPC和国标GB28181 NVR设备同时接入 (支持GB28181-2011版本和GB28181-2016版本)     2、支持国标GB28181设备注册和注销,对所有设备进行管理,获取资源 对资源列表进行管理     3、支持国标GB28181的目录订阅,对接收的订阅通知进行处理     4、支持国标GB28181实时视频请求(支持UDP、TCP主动(tcpactive)、TCP被动(tcppassive))     5、支持国标GB28181 PTZ控制     6、支持国标GB28181 录像查询     7、支持国标GB28181 历史视频点播 (支持UDP、TCP主动(tcpactive)、TCP被动(tcppassive))     8、支持国标GB28181 历史视频下载 (支持UDP、TCP主动(tcpactive)、TCP被动(tcppassive))     9、支持对接收的国标实时视频码流和历史视频码流进行管理     10、支持将国标的PS码流转换成ES码流     11、支持丢包打印和断流打印     13、支持RTSP服务和RTSP会话管理     14、支持RTSP客户端 UDP传输和TCP传输     15、支持国标GB28181设备5000路左右的接入管理,支持国标请求视频在100路左右     16、支持国标28181设备和通道写入mysql数据库      17、支持设备的云台PTZ控制,控制类型:上"up",下"down",左"left",右"right",左上"leftup",左下"leftdown",右上"rightup",右下"rightdown",镜头近"zoomin",镜头远"zoomout", 焦距远"focusfar",焦距近"focusnear", 设置预置位"setpos",调预置位"callpos"     18、支持历史视频的查询和历史视频的点播控制     19、支持对国标设备的控制,"record":录像开启和停止-通道id "guard":布放和撤防-报警通道id "reboot":设备重启-设备id "keyfame":强制关键帧-通道id     20、支持对实时视频的图片截图,通过http直接访问图片    21、支持rtmp和hls会话一直保留    22、支持报警消息(设备上线、下线和设备端报警)通过httpclient方式主动通知    23、支持公网和局域网同时存在
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值