FAQ  •  Register  •  Login

Streams that expire

<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Sun Jul 22, 2012 4:54 am

Streams that expire

Some rtmp streams expire in a few minutes. for e.g.

rtmp://174.36.55.76/pull?testkey=1b1a61 ... 75ec107484 playpath=chhh33333 pageUrl=http://leton.tv/player.php?streampage=chhh33333 swfUrl=http://files.leton.tv/player.swf live=true

the testkey expires if unused for a few minutes.

The following http://leton.tv/player.php?streampage=chhh33333 basically conatins the information to generate the above stream url which contians a new test key every time the page is fetched. So I wrote a plugin that extracts the stream information from the above link when added to the online library. But since the stream testkey expires, it works for if used right after adding (or a refresh).

According to my knowledge(even if the item is using a plugin), serviio processes (runs ffmpeg to extract stream information) for the items added to online library, when the item is added to the library. Since, all the processing is done when item is being added, streams that expire will fail to work with serviio.

Is it possible for serviio to do partial processing when item is added to the library and leave some processing for runtime i.e. when item is actually requested by a renderer. Is it possible for serviio to introduce a different catgeogry of plugins that process the urls when item is requested by a renderer rather than when item is added to the library. ???
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jul 22, 2012 2:30 pm

Re: Streams that expire

yes, just set expiresImmediately=true in the plugin. See the plugin dev guide
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Jul 22, 2012 6:21 pm

Re: Streams that expire

The plugin for all these sports streams including leton already exists. See hahasport.groovy

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 35 guests

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