mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Support RTMP ATC for HLS/HDS to support backup(failover). change to 0.9.35
This commit is contained in:
parent
ebf1139582
commit
0858bd8b6f
8 changed files with 120 additions and 13 deletions
|
@ -1340,6 +1340,22 @@ bool SrsConfig::get_gop_cache(string vhost)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool SrsConfig::get_atc(string vhost)
|
||||
{
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
|
||||
if (!conf) {
|
||||
return true;
|
||||
}
|
||||
|
||||
conf = conf->get("atc");
|
||||
if (conf && conf->arg0() == "on") {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
double SrsConfig::get_queue_length(string vhost)
|
||||
{
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue