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

Http callback on_play support RTMP/HLS/HTTP-FLV #52

Closed
winlinvip opened this issue Apr 30, 2015 · 11 comments
Closed

Http callback on_play support RTMP/HLS/HTTP-FLV #52

winlinvip opened this issue Apr 30, 2015 · 11 comments
Assignees
Labels
API HTTP-API, HTTP-Callback, etc. Feature It's a new feature. TransByAI Translated by AI/GPT.
Milestone

Comments

@winlinvip
Copy link
Member

https://github.com/winlinvip/simple-rtmp-server/issues/52

@winlinvip winlinvip added the Feature It's a new feature. label Apr 30, 2015
@winlinvip winlinvip added this to the srs 3.0 release milestone Apr 30, 2015
@reduxionist
Copy link
Contributor

👍 very much need this feature, don't need CDN support for it though

@winlinvip
Copy link
Member Author

It's impossible for u to hook each request of player, when play stream from cdn.

@reduxionist
Copy link
Contributor

reduxionist commented Jun 17, 2015

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! :)

On 17 Jun 2015, at 10:15, winlin notifications@github.com wrote:'
Make sure to maintain the markdown structure.

It's impossible for u to hook each request of player, when play stream from cdn.


Make sure to maintain the markdown structure.
Reply to this email directly or view it on GitHub.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

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.

@reduxionist
Copy link
Contributor

reduxionist commented Jun 17, 2015

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!

On 17 Jun 2015, at 13:18, winlin notifications@github.com wrote:'
Make sure to maintain the markdown structure.

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 stream, for example the HTTP FLV stream.


Make sure to maintain the markdown structure.
Reply to this email directly or view it on GitHub.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

The on_play hook is only support RTMP now. But it's possible for HLS/HTTP-FLV, which is not support yet.
When this bug is closed, the on_play hook will support RTMP/HLS/HTTP-FLV.

@winlinvip winlinvip reopened this Jun 17, 2015
@winlinvip
Copy link
Member Author

Sorry, I will fix this issue on SRS3.

@winlinvip winlinvip changed the title 播放hls流的时候没有调用on_play的httpcallback Http callback on_play support RTMP/HLS/HTTP-FLV Jun 17, 2015
@superxrb
Copy link

How about on_stop for HTTP-FLV and HLS?

@winlinvip
Copy link
Member Author

For HLS, you should handle it on NGINX.
For FLV, the http callback is planed in SRS3.

@winlinvip
Copy link
Member Author

winlinvip commented Dec 26, 2019

RTMP and FLV are already supported, and HLS is expected to be supported in SRS4.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

Dup to #1657

@winlinvip winlinvip added the API HTTP-API, HTTP-Callback, etc. label Aug 24, 2021
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API HTTP-API, HTTP-Callback, etc. Feature It's a new feature. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

4 participants