mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support amf0 and json to convert with each other.
This commit is contained in:
parent
3f7e69b617
commit
b59d9ba6a1
7 changed files with 181 additions and 21 deletions
|
@ -5573,22 +5573,22 @@ vector<SrsConfDirective*> SrsConfig::get_exec_publishs(string vhost)
|
|||
|
||||
vector<SrsConfDirective*> SrsConfig::get_ingesters(string vhost)
|
||||
{
|
||||
vector<SrsConfDirective*> ingeters;
|
||||
vector<SrsConfDirective*> integers;
|
||||
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
if (!conf) {
|
||||
return ingeters;
|
||||
return integers;
|
||||
}
|
||||
|
||||
for (int i = 0; i < (int)conf->directives.size(); i++) {
|
||||
SrsConfDirective* ingester = conf->directives[i];
|
||||
|
||||
if (ingester->name == "ingest") {
|
||||
ingeters.push_back(ingester);
|
||||
integers.push_back(ingester);
|
||||
}
|
||||
}
|
||||
|
||||
return ingeters;
|
||||
return integers;
|
||||
}
|
||||
|
||||
SrsConfDirective* SrsConfig::get_ingest_by_id(string vhost, string ingest_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue