mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Enhancement: Add param and stream to on_connect (#1859)
Add stream and param to hook call on_connect for better use
This commit is contained in:
parent
c4a64ee470
commit
7b14281367
1 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,8 @@ srs_error_t SrsHttpHooks::on_connect(string url, SrsRequest* req)
|
||||||
obj->set("ip", SrsJsonAny::str(req->ip.c_str()));
|
obj->set("ip", SrsJsonAny::str(req->ip.c_str()));
|
||||||
obj->set("vhost", SrsJsonAny::str(req->vhost.c_str()));
|
obj->set("vhost", SrsJsonAny::str(req->vhost.c_str()));
|
||||||
obj->set("app", SrsJsonAny::str(req->app.c_str()));
|
obj->set("app", SrsJsonAny::str(req->app.c_str()));
|
||||||
|
obj->set("stream", SrsJsonAny::str(req->stream.c_str()));
|
||||||
|
obj->set("param", SrsJsonAny::str(req->param.c_str()));
|
||||||
obj->set("tcUrl", SrsJsonAny::str(req->tcUrl.c_str()));
|
obj->set("tcUrl", SrsJsonAny::str(req->tcUrl.c_str()));
|
||||||
obj->set("pageUrl", SrsJsonAny::str(req->pageUrl.c_str()));
|
obj->set("pageUrl", SrsJsonAny::str(req->pageUrl.c_str()));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue