You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Please read FAQ before file an issue, see #2716
Description
English:
I use the RTMP URL: rtmp://yulee.local:1935/live/livestream?secret=spy&token=hellotoken to push the stream. Then, I can receive the on_publish action in the HTTP Hook. Up to this point, everything works fine. However, ?secret=spy&token=hellotoken does not exist in the on_publish action request parameter. It only sends "?secret=spy" in the param field.
Chinese:
I use the URL: rtmp://yulee.local:1935/live/livestream?secret=spy&token=hellotoken to push the stream to SRS, and everything is working fine. Then, I ran the main branch of SRS Stack, and debugged the method on line 54 in srs_hooks.go, which is the HTTP Hook for on_publish. I found that the request parameters for the on_publish Hook are incomplete, missing &token=hellotoken and only having ?secret=spy.
This is not a problem with the callback, but with your streaming command. In the bash command line, the special character & represents starting in the background. You should modify your command line:
Description
English:
I use the RTMP URL:
rtmp://yulee.local:1935/live/livestream?secret=spy&token=hellotoken
to push the stream. Then, I can receive the on_publish action in the HTTP Hook. Up to this point, everything works fine. However,?secret=spy&token=hellotoken
does not exist in the on_publish action request parameter. It only sends "?secret=spy" in theparam
field.Chinese:
I use the URL:
rtmp://yulee.local:1935/live/livestream?secret=spy&token=hellotoken
to push the stream toSRS
, and everything is working fine. Then, I ran themain
branch ofSRS Stack
, and debugged the method on line 54 insrs_hooks.go
, which is the HTTP Hook for on_publish. I found that the request parameters for the on_publish Hook are incomplete, missing&token=hellotoken
and only having?secret=spy
.SRS Version: 5.0
SRS Config:
Replay
Please describe how to replay the bug?
Step 1:
Step 2:
debug on_publish function
Expect
English:
return all param, "?secret=spy&token=hellotoken"
Chinese:
I think it should return all parameters.
TRANS_BY_GPT4
The text was updated successfully, but these errors were encountered: