mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
GB28181: Support GB28181-2016 protocol. v5.0.74 (#3201)
01. Support GB config as StreamCaster. 02. Support disable GB by --gb28181=off. 03. Add utests for SIP examples. 04. Wireshark plugin to decode TCP/9000 as rtp.rfc4571 05. Support MPEGPS program stream codec. 06. Add utest for PS stream codec. 07. Decode MPEGPS packet stream. 08. Carry RTP and PS packet as helper in PS message. 09. Support recover from error mode. 10. Support process by a pack of PS/TS messages. 11. Add statistic for recovered and msgs dropped. 12. Recover from err position fastly. 13. Define state machine for GB session. 14. Bind context to GB session. 15. Re-invite when media disconnected. 16. Update GitHub actions with GB28181. 17. Support parse CANDIDATE by env or pip. 18. Support mux GB28181 to RTMP. 19. Support regression test by srs-bench.
This commit is contained in:
parent
9c81a0e1bd
commit
5a420ece3b
298 changed files with 43343 additions and 763 deletions
|
@ -101,6 +101,7 @@ extern bool srs_config_dvr_is_plan_segment(std::string plan);
|
|||
extern bool srs_config_dvr_is_plan_session(std::string plan);
|
||||
extern bool srs_stream_caster_is_udp(std::string caster);
|
||||
extern bool srs_stream_caster_is_flv(std::string caster);
|
||||
extern bool srs_stream_caster_is_gb28181(std::string caster);
|
||||
// Whether the dvr_apply active the stream specified by req.
|
||||
extern bool srs_config_apply_filter(SrsConfDirective* dvr_apply, SrsRequest* req);
|
||||
|
||||
|
@ -487,13 +488,16 @@ public:
|
|||
virtual std::string get_stream_caster_output(SrsConfDirective* conf);
|
||||
// Get the listen port of stream caster.
|
||||
virtual int get_stream_caster_listen(SrsConfDirective* conf);
|
||||
// Get the listen port type of stream caster.
|
||||
virtual bool get_stream_caster_tcp_enable(SrsConfDirective* conf);
|
||||
// Get the min udp port for rtp of stream caster rtsp.
|
||||
virtual int get_stream_caster_rtp_port_min(SrsConfDirective* conf);
|
||||
// Get the max udp port for rtp of stream caster rtsp.
|
||||
virtual int get_stream_caster_rtp_port_max(SrsConfDirective* conf);
|
||||
|
||||
// Get the sip.enabled configuration.
|
||||
virtual bool get_stream_caster_sip_enable(SrsConfDirective* conf);
|
||||
// Get the sip.listen port configuration.
|
||||
virtual int get_stream_caster_sip_listen(SrsConfDirective* conf);
|
||||
// Get the sip.timeout configuration.
|
||||
virtual srs_utime_t get_stream_caster_sip_timeout(SrsConfDirective* conf);
|
||||
// Get the sip.reinvite configuration.
|
||||
virtual srs_utime_t get_stream_caster_sip_reinvite(SrsConfDirective* conf);
|
||||
// Get the candidate for SDP.
|
||||
virtual std::string get_stream_caster_sip_candidate(SrsConfDirective* conf);
|
||||
// rtc section
|
||||
public:
|
||||
virtual bool get_rtc_server_enabled();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue