some streams like:
rtmp://mysite:3939/app/aaaaaa;bbbb
rtmp://mysite:3939/app/wewewe;ffff
rtmp://mysite:3939/app/zeiwew;uuuu
comes to my nginx. i want restream them to these addresses:
rtmp://localhost:1935/app/aaaaaa
rtmp://localhost:1935/app/wewewe
rtmp://localhost:1935/app/zeiwew
i have this rtmp config, but i can not use map to make destination address. should i use $name variable? how? thanks for your help
rtmp {
server {
listen 3939;
ping 30s;
notify_method get;
application app {
live on;
push rtmp://localhost:1935/app/;
}
}
}