nginx-rtmp-module
nginx-rtmp-module copied to clipboard
[Question] Disconnect stream connection if relay disconnects
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.
rtmp {
server {
listen 1936 proxy_protocol;
application live {
live on;
record off;
push rtmp://localhost:2935;
}
}
}
stream {
proxy_protocol on;
server {
listen 1935;
proxy_pass localhost:1936;
}
}