-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Question] Disconnect stream connection if relay disconnects #1766
Comments
In nginx-rtmp module there is
This way you can setup the server (with the adequate rest api) that will interrupt the stream source (the one connected at port 1935) once it receives the request from the More info can be found at: https://github.com/JIEgOKOJI/nginx-rtmp/blob/master/directives.md#on_publish_done |
@SaltyPretzel303 Thanks for the response. Unfortunately, the client sends the stream to port 1935, which we cannot interrupt. Is there no way to achieve this using the RTMP directive? I have tried using the HTTP Control module to disconnect, but it doesn't seem to work. Do you know of a way to achieve this by refactoring the code? |
I have never used nginx tcp load balancing directive but from the quick look at the documentation (https://docs.nginx.com/nginx/admin-guide/load-balancer/dynamic-configuration-api/) it seems that the only way may be to remove and then add the rtmp server handling the connection once the |
Is there a way to disconnect a stream connection if the relay disconnects? The following is a code snippet. If the push to port 2935 disconnects, I would like to disconnect the stream to port 1935.
The text was updated successfully, but these errors were encountered: