nginx-rtmp-module
nginx-rtmp-module copied to clipboard
Push not forwarding stream name to another app
Hi, I have this basic setup:
rtmp {
server {
listen 1935;
chunk_size 4096;
access_log /var/log/nginx/rtmp_access.log;
hls on;
hls_path /usr/local/www/stream/tmp/hls0;
hls_nested on;
hls_fragment 5s;
hls_playlist_length 30s;
hls_fragment_naming system;
timeout 30s;
ping 30s;
ping_timeout 10s;
application Test {
live on;
record off;
on_publish http://127.0.0.1/php/rtmp_auth.php;
on_publish_done http://127.0.0.1/php/on_publish_done.php;
push rtmp://localhost:1935/live live=1;
}
application live{
live on;
}
}
}
I Stream to: Server: rtmp://<IP>/Test Key: Z006_input?key=test
Application 'Test' is writing to <hls_path>/Z006_input
But Application 'live' is just writing to <hls_path>
Isnt it odd that the streamname isnt forwarded to 'live'?
It seems I can resolve this by adding
NGX_RTMP_RELAY_STR_COPY(name, name);
at line 329 in ngx_rtmp_relay_module.c
I will test this a bit more