mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support config the hls_nb_notify.
This commit is contained in:
parent
0a7cea063c
commit
5d37e47783
6 changed files with 39 additions and 6 deletions
|
@ -240,9 +240,10 @@ int SrsDvrAsyncCallOnHlsNotify::call()
|
|||
return ret;
|
||||
}
|
||||
|
||||
int nb_notify = _srs_config->get_vhost_hls_nb_notify(req->vhost);
|
||||
for (int i = 0; i < (int)on_hls->args.size(); i++) {
|
||||
std::string url = on_hls->args.at(i);
|
||||
if ((ret = SrsHttpHooks::on_hls_notify(url, req, ts_url)) != ERROR_SUCCESS) {
|
||||
if ((ret = SrsHttpHooks::on_hls_notify(url, req, ts_url, nb_notify)) != ERROR_SUCCESS) {
|
||||
srs_error("hook client on_hls_notify failed. url=%s, ts=%s, ret=%d", url.c_str(), ts_url.c_str(), ret);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue