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
|
@ -2857,46 +2857,6 @@ VOID TEST(ConfigMainTest, CheckStreamCaster)
|
|||
|
||||
EXPECT_EQ(8080, conf.get_stream_caster_listen(arr.at(0)));
|
||||
}
|
||||
|
||||
if (true) {
|
||||
MockSrsConfig conf;
|
||||
HELPER_ASSERT_SUCCESS(conf.parse(_MIN_OK_CONF "stream_caster;"));
|
||||
|
||||
vector<SrsConfDirective*> arr = conf.get_stream_casters();
|
||||
ASSERT_EQ(1, (int)arr.size());
|
||||
|
||||
EXPECT_EQ(0, (int)conf.get_stream_caster_rtp_port_min(arr.at(0)));
|
||||
}
|
||||
|
||||
if (true) {
|
||||
MockSrsConfig conf;
|
||||
HELPER_ASSERT_SUCCESS(conf.parse(_MIN_OK_CONF "stream_caster {rtp_port_min 8080;}"));
|
||||
|
||||
vector<SrsConfDirective*> arr = conf.get_stream_casters();
|
||||
ASSERT_EQ(1, (int)arr.size());
|
||||
|
||||
EXPECT_EQ(8080, conf.get_stream_caster_rtp_port_min(arr.at(0)));
|
||||
}
|
||||
|
||||
if (true) {
|
||||
MockSrsConfig conf;
|
||||
HELPER_ASSERT_SUCCESS(conf.parse(_MIN_OK_CONF "stream_caster;"));
|
||||
|
||||
vector<SrsConfDirective*> arr = conf.get_stream_casters();
|
||||
ASSERT_EQ(1, (int)arr.size());
|
||||
|
||||
EXPECT_EQ(0, (int)conf.get_stream_caster_rtp_port_max(arr.at(0)));
|
||||
}
|
||||
|
||||
if (true) {
|
||||
MockSrsConfig conf;
|
||||
HELPER_ASSERT_SUCCESS(conf.parse(_MIN_OK_CONF "stream_caster {rtp_port_max 8080;}"));
|
||||
|
||||
vector<SrsConfDirective*> arr = conf.get_stream_casters();
|
||||
ASSERT_EQ(1, (int)arr.size());
|
||||
|
||||
EXPECT_EQ(8080, conf.get_stream_caster_rtp_port_max(arr.at(0)));
|
||||
}
|
||||
}
|
||||
|
||||
VOID TEST(ConfigMainTest, CheckVhostConfig2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue