FAQ  •  Register  •  Login

Dynamic live sources

<<

tomek4

Serviio newbie

Posts: 5

Joined: Thu Jan 08, 2015 9:04 am

Post Thu Mar 12, 2015 8:02 pm

Dynamic live sources

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?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Mar 12, 2015 10:09 pm

Re: Dynamic live sources

You can write an online resource plugin that will generate it for you.
<<

tomek4

Serviio newbie

Posts: 5

Joined: Thu Jan 08, 2015 9:04 am

Post Thu Mar 12, 2015 10:27 pm

Re: Dynamic live sources

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.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 86 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.