Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add param and stream to on_connect #1859

Merged
merged 1 commit into from
Aug 28, 2021

Conversation

matinzd
Copy link
Contributor

@matinzd matinzd commented Jul 20, 2020

Add stream and param to hook call on_connect for better use

Add stream and param to hook call on_connect for better use
@matinzd
Copy link
Contributor Author

matinzd commented Jul 20, 2020

Could you please review this pr and merge into master if possible? @winlinvip

@winlinvip winlinvip force-pushed the 3.0release branch 28 times, most recently from 3c0fc9b to ccd8c86 Compare August 15, 2021 09:08
Copy link
Member

@duiniuluantanqin duiniuluantanqin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem

@@ -70,6 +70,8 @@ srs_error_t SrsHttpHooks::on_connect(string url, SrsRequest* req)
obj->set("ip", SrsJsonAny::str(req->ip.c_str()));
obj->set("vhost", SrsJsonAny::str(req->vhost.c_str()));
obj->set("app", SrsJsonAny::str(req->app.c_str()));
obj->set("stream", SrsJsonAny::str(req->stream.c_str()));
Copy link
Member

@winlinvip winlinvip Aug 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stream does not have a value in on_connect, right? It only has a value when play or publish occurs.

However, adding it is also possible, but it may be an empty value.

TRANS_BY_GPT3

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you can note that in the documentation that this may be null.

@winlinvip winlinvip changed the base branch from 3.0release to 4.0release August 28, 2021 00:54
@winlinvip winlinvip merged commit 7b14281 into ossrs:4.0release Aug 28, 2021
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants