Page 1 of 1

Dynamic live sources

PostPosted: Thu Mar 12, 2015 8:02 pm
by tomek4
Hi Guys,

is there a way to handle a dynamic part in live sources?
My source needs to add generated token to the link. Token is received by separate request.

I see few possibilities here:
1. use an environment variable in source link, cron will store token there - I guess there is no such possibility yet
2. use an external command in link like: rtmp://1.2.3.4/source live=true swfUrl=http://anyurl token=`gettoken.sh` - it's not working
3. use a proxy server to redirect local source to remote with valid token - I didn't try it but found this http://nginx-rtmp.blogspot.com/2014/01/ ... n-111.html

Any ideas?

Re: Dynamic live sources

PostPosted: Thu Mar 12, 2015 10:09 pm
by zip
You can write an online resource plugin that will generate it for you.

Re: Dynamic live sources

PostPosted: Thu Mar 12, 2015 10:27 pm
by tomek4
Thanks Zip.

Indeed it seems that I have to start learn plugin development.
But tried to avoid that so much :)
Unfortunately nginx-rtmp pull command doesn't work for me.
The same with regular 301 redirection http -> rtmp.
In both cases ffmpeg -i doesn't follow new location.

Regards, Tomek.