-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
When using FLV streaming, the on_play function of http_hooks returns the parameters of the stream being pushed (IP and param). #1210
Comments
The version being used is SRS v2.0.255.
|
same problem here ... play rtmp://192.168.2.10:1935/rooms/cam1?token=clientTOKEN
play https://192.168.2.10/rooms/cam1.flv?token=clientTOKEN
|
btw, how can I disable rtmp:// play, allow http-flv play only? port 1935 should not be disabled on the server because publisher could use that |
Please file another issue. |
Configuration:
Streaming, with parameter
When playing RTMP, the parameter is normal:
When playing FLV, the parameters are also normal:
SRS3 is normal, let me check SRS2.
|
SRS2 is also normal:
Please confirm if your reproduction steps can consistently reproduce the issue.
|
That param was fixed in 2.0-r6. Now the issue is that the IP cannot be obtained.
|
Dup to #1488 |
When using three different devices for push-pull stream authentication.
The push device uses rtmp. {"action":"on_publish","client_id":290,"ip":"10.0.0.100","vhost":"defaultVhost","app":"live","stream":"a688354e3a62daf45099a0d7cb144bed","param":"?s=005477ec00579a5711fb033dfa7b4784&t=1535481066&u=5","pageUrl":""}
The other two devices use rtmp and flv respectively.
The device that uses rtmp for streaming has the on_play parameter set correctly without any errors.
{"action":"on_play","client_id":307,"ip":"10.0.0.101","vhost":"defaultVhost","app":"5","stream":"a688354e3a62daf45099a0d7cb144bed","param":"?s=88a9c91c1af18da7a3753f18f941e542&t=1535481119&u=4","pageUrl":""}
For devices that use flv for streaming, the on_play callback includes the param and ip information of the streaming device.
{"action":"on_play","client_id":315,"ip":"10.0.0.100","vhost":"defaultVhost","app":"5","stream":"a688354e3a62daf45099a0d7cb144bed","param":"?s=005477ec00579a5711fb033dfa7b4784&t=1535481066&u=5","pageUrl":""}
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: