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

add author byteman for h264 to flv.

This commit is contained in:
winlin 2014-04-25 15:27:50 +08:00
parent f3b441ba1f
commit d6948d613f
5 changed files with 48 additions and 2 deletions

View file

@ -1805,6 +1805,22 @@ int SrsConfig::get_bw_check_limit_kbps(const string &vhost)
return ::atoi(conf->arg0().c_str());
}
bool SrsConfig::get_vhost_is_edge(std::string vhost)
{
SrsConfDirective* conf = get_vhost(vhost);
if (!conf) {
return false;
}
conf = conf->get("mode");
if (!conf || conf->arg0() != "remote") {
return false;
}
return true;
}
SrsConfDirective* SrsConfig::get_transcode(string vhost, string scope)
{
SrsConfDirective* conf = get_vhost(vhost);