1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

auto open atc for bravo_atc set

This commit is contained in:
winlin 2014-04-29 18:27:00 +08:00
parent 0f498acd7b
commit f02ac02a50
4 changed files with 35 additions and 1 deletions

View file

@ -822,6 +822,14 @@ int SrsSource::on_meta_data(SrsMessage* msg, SrsOnMetaDataPacket* metadata)
}
}
// if bravo-atc, open atc for vhost.
if ((prop = metadata->metadata->get_property("bravo_atc")) != NULL) {
if (prop->is_string() && prop->to_str() == "true") {
atc = true;
_srs_config->set_atc(_req->vhost, true);
}
}
// encode the metadata to payload
int size = 0;
char* payload = NULL;