|
|
|
@ -575,6 +575,11 @@ SrsConfDirective* SrsConfig::get_vhost_on_connect(std::string vhost)
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SrsConfDirective* enabled = conf->get("enabled");
|
|
|
|
|
if (!enabled || enabled->arg0() != "on") {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return conf->get("on_connect");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -591,6 +596,11 @@ SrsConfDirective* SrsConfig::get_vhost_on_close(std::string vhost)
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SrsConfDirective* enabled = conf->get("enabled");
|
|
|
|
|
if (!enabled || enabled->arg0() != "on") {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return conf->get("on_close");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -607,6 +617,11 @@ SrsConfDirective* SrsConfig::get_vhost_on_publish(std::string vhost)
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SrsConfDirective* enabled = conf->get("enabled");
|
|
|
|
|
if (!enabled || enabled->arg0() != "on") {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return conf->get("on_publish");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -623,6 +638,11 @@ SrsConfDirective* SrsConfig::get_vhost_on_unpublish(std::string vhost)
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SrsConfDirective* enabled = conf->get("enabled");
|
|
|
|
|
if (!enabled || enabled->arg0() != "on") {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return conf->get("on_unpublish");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -639,6 +659,11 @@ SrsConfDirective* SrsConfig::get_vhost_on_play(std::string vhost)
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SrsConfDirective* enabled = conf->get("enabled");
|
|
|
|
|
if (!enabled || enabled->arg0() != "on") {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return conf->get("on_play");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -655,6 +680,11 @@ SrsConfDirective* SrsConfig::get_vhost_on_stop(std::string vhost)
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SrsConfDirective* enabled = conf->get("enabled");
|
|
|
|
|
if (!enabled || enabled->arg0() != "on") {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return conf->get("on_stop");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|