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

listen to event when rtsp clients start / stop playing the stream #141

Open
frankville opened this issue Mar 13, 2020 · 1 comment
Open

Comments

@frankville
Copy link

Hi, great job with this tool, it's very useful.

I'm looking for a way to relay an RTSP stream on demand, because the rtsp client that I'm working with does not accept certain URL formats (like having query params).

I was looking a bit into the code but I couldn't find If there is a way to achieve this.

An alternative is to register a listener or to get notified when an RTSP client starts / stops requesting a stream and then start an ffmpeg process to publish the origin stream to node-rtsp-rtmp-server, but I couldn't find this either.

Sorry for the long post but I'm really interested in using this tool in my projects. Thanks

@iizukanao
Copy link
Owner

@frankville Hi, thanks for your interest!

I'm not sure if I understand the former question correctly. node-rtsp-rtmp-server does not support relaying.

As for the latter question, in rtsp.coffee, respondPlay method is called when a client wants to start a streaming (PLAY method in RTSP), and respondTeardown is called when a client wants to stop a streaming (TEARDOWN method in RTSP). You might want to add some code to these methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants