-
-
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
Http callback on_play support RTMP/HLS/HTTP-FLV #52
Comments
👍 very much need this feature, don't need CDN support for it though |
It's impossible for u to hook each request of player, when play stream from cdn. |
Thank you for your reply! We don't want to hook on_play from CDN. We only want to use the on_play hook when serving HLS directly ourselves; no CDN involved. Thanks for sharing your excellent code! :)
|
Got it. It's ok for your use scenario. When use SRS as RTMP/HTTP/HLS server, the on_play can be hooked when user play the stream, especially the media stream protocol, for example the HTTP FLV stream. |
Wow! I must have misunderstood the Google translation of this issue, as I thought that HTTP hooks such as on_play only worked with RTMP and that they did not work with HLS. But if I understand correctly now, with SRS you can use HTTP callbacks registered against the on_play hook even with HLS (and thus m3u8 delivered MP4s)! This is functionality that many people want from nginx-mod-rtmp but which is not possible there. I will update your English language docs to highlight this feature once I have got the functionality working myself and know what I'm talking about. Congratulations on being the most advanced open-source, industrial-strength, media streaming server in the world, and thanks for the fast replies to support issues!
|
The on_play hook is only support RTMP now. But it's possible for HLS/HTTP-FLV, which is not support yet. |
Sorry, I will fix this issue on SRS3. |
How about on_stop for HTTP-FLV and HLS? |
For HLS, you should handle it on NGINX. |
RTMP and FLV are already supported, and HLS is expected to be supported in SRS4.
|
Dup to #1657 |
https://github.com/winlinvip/simple-rtmp-server/issues/52
The text was updated successfully, but these errors were encountered: