mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add srt mpegts to rtmp
This commit is contained in:
parent
7b9e3ecdc4
commit
5c5fd805c5
17 changed files with 682 additions and 172 deletions
|
@ -3640,7 +3640,7 @@ srs_error_t SrsConfig::check_normal_config()
|
|||
get_vhosts(vhosts);
|
||||
for (int n = 0; n < (int)vhosts.size(); n++) {
|
||||
SrsConfDirective* vhost = vhosts[n];
|
||||
printf("virtural host name:%s, arg:%s\r\n", vhost->name.c_str(), vhost->args[0].c_str());
|
||||
|
||||
for (int i = 0; vhost && i < (int)vhost->directives.size(); i++) {
|
||||
SrsConfDirective* conf = vhost->at(i);
|
||||
string n = conf->name;
|
||||
|
|
|
@ -1014,6 +1014,12 @@ srs_error_t SrsServer::listen_srt() {
|
|||
srs_trace("srt server is enabled...");
|
||||
unsigned short srt_port = _srs_config->get_srt_listen_port();
|
||||
srs_trace("srt server listen port:%d", srt_port);
|
||||
err = srt2rtmp::get_instance()->init();
|
||||
if (err != srs_success) {
|
||||
srs_error_wrap(err, "srt start srt2rtmp error");
|
||||
return err;
|
||||
}
|
||||
|
||||
srt_ptr = std::make_shared<srt_server>(srt_port);
|
||||
if (!srt_ptr) {
|
||||
srs_error_wrap(err, "srt listen %d", srt_port);
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include <srs_app_conn.hpp>
|
||||
#include <srs_service_st.hpp>
|
||||
#include "../srt/srt_server.hpp"
|
||||
#include "../srt/srt_to_rtmp.hpp"
|
||||
|
||||
class SrsServer;
|
||||
class SrsConnection;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue