mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add atc_auto to disable or enable auto detect atc
This commit is contained in:
parent
30bb3ff704
commit
fc501b050b
5 changed files with 31 additions and 6 deletions
|
@ -822,11 +822,13 @@ int SrsSource::on_meta_data(SrsMessage* msg, SrsOnMetaDataPacket* metadata)
|
|||
}
|
||||
}
|
||||
|
||||
// if bravo-atc, open atc for vhost.
|
||||
// if allow atc_auto and bravo-atc detected, open atc for vhost.
|
||||
atc = _srs_config->get_atc(_req->vhost);
|
||||
if ((prop = metadata->metadata->get_property("bravo_atc")) != NULL) {
|
||||
if (prop->is_string() && prop->to_str() == "true") {
|
||||
atc = true;
|
||||
if (_srs_config->get_atc_auto(_req->vhost)) {
|
||||
if ((prop = metadata->metadata->get_property("bravo_atc")) != NULL) {
|
||||
if (prop->is_string() && prop->to_str() == "true") {
|
||||
atc = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue