FAQ  •  Register  •  Login

Extension to the plugin api

<<

crowly

Serviio newbie

Posts: 5

Joined: Tue Jan 31, 2012 2:52 pm

Post Tue Jan 31, 2012 3:16 pm

Extension to the plugin api

I've been looking at adding a plugin to support the iptv gateway we use. However I could do with an extension to the plugin api (it could done as a new type of plugin).

Firstly the method extractItems() needs to be called for each UPnP client, with information about each client passed to the method. This is needed as the iptv gateway has a different list of channels based on the calling ip addr, and also a different list of recordings based on the calling ip.

Secondly a method that is called for each item a UPnP client plays would need to be added. This method would allow the plugin handle the actual network streaming, the method would need to be passed all the details about the request (quality, stream off-set etc) and well as the details about the client (ip, profile etc). This method could call an inherited method with chunked data that the method has streamed.

These extensions would make it possible to add support for the iptv gateway we use (and many others), as well as allowing many more classes of network service to be wrapped via a plugin and served to UPnP clients.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jan 31, 2012 5:21 pm

Re: Extension to the plugin api

could you not do it in a static way by passing a predefined set of attributes in the resource URL?

Like: http://mystreamip:port/something?param1=bla&param2=bla2

You could then get the param values in extractItems() and possibly pass down to the per-item extraction method
<<

crowly

Serviio newbie

Posts: 5

Joined: Tue Jan 31, 2012 2:52 pm

Post Wed Feb 01, 2012 10:59 am

Re: Extension to the plugin api

This unfortunately will not work, unless extractItem is passed details about the client ip (i.e. the ip of the UPnP tv requesting the list of items). The call to the iptv would be in the form http://ip/simpleproxy.php?clientip=IP&c ... hannellist so the data would be needed to provided the data for clientip.

Also the iptv gateways streaming format (unicast and multicast udp) is not supported by serviio, which is why I would need the plugin to have the ability to handle the network streaming.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 01, 2012 11:23 am

Re: Extension to the plugin api

this does not fit in, at the time the plugin is invoked Serviio doesn't know anything about the clients, current or future.
<<

crowly

Serviio newbie

Posts: 5

Joined: Tue Jan 31, 2012 2:52 pm

Post Wed Feb 01, 2012 11:40 am

Re: Extension to the plugin api

Any chance of adding the network streaming methods ?

As a could serve only the content that is available to all.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 01, 2012 11:53 am

Re: Extension to the plugin api

It's the same, plugin is processed long time before the content is played.
<<

crowly

Serviio newbie

Posts: 5

Joined: Tue Jan 31, 2012 2:52 pm

Post Wed Feb 01, 2012 11:57 am

Re: Extension to the plugin api

I take it that a reference to the source plugin is lost once the list of items it returned.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 01, 2012 12:52 pm

Re: Extension to the plugin api

the plugin is processed first, rsults stored in a cache and when you actually browse on the TV it uses the cached objects rather than invoking the plugin again
<<

crowly

Serviio newbie

Posts: 5

Joined: Tue Jan 31, 2012 2:52 pm

Post Wed Feb 01, 2012 12:56 pm

Re: Extension to the plugin api

I see, I take it having a plugin class that is called per request for the title list is not an easy thing to accomplish.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 01, 2012 1:01 pm

Re: Extension to the plugin api

that would be a different kind of plugins with a different API and it's not in the scope ATM

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 24 guests

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