Creating Plugins

Discuss third-party additions, plugins and translations for PS3 Media Server

Creating Plugins

Postby cgulka » Sun Jan 17, 2010 6:44 am

I have just discovered that the latest beta allow the creation of plugins. I have been unable to find any information on how to create plugins. I have some great ideas, and would love to start creating some.

Also, is there a list of all plugins available?
cgulka
 
Posts: 3
Joined: Wed Oct 14, 2009 7:05 pm

Re: Creating Plugins

Postby otmanix » Sun Jan 17, 2010 9:39 pm

cgulka wrote:Also, is there a list of all plugins available?

read additional software section in howto: http://ps3mediaserver.org/forum/viewtopic.php?f=6&t=3507
I provide NO application support via PM, so please post your question to the forum.
PS3 Media Server related articles on my blog: http://otmanix.de/?cat=11&lang=en
User avatar
otmanix
 
Posts: 528
Joined: Fri Jan 30, 2009 12:40 am
Location: Bavaria, Germany

Re: Creating Plugins

Postby genie » Wed Jan 20, 2010 2:07 pm

otmanix,

this is a list of plugins but I'm a developer and I want to build one is there any documentation on how to do one?
genie
 
Posts: 35
Joined: Mon Dec 07, 2009 8:33 pm

Re: Creating Plugins

Postby meskibob » Wed Jan 20, 2010 2:15 pm

Not really AFAIK.
I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4788
Joined: Mon Jan 19, 2009 4:11 pm

Re: Creating Plugins

Postby WorldOfHurt » Wed Jan 20, 2010 3:37 pm

As far as I can see from the source code (and I have not implemented one, so this is just out of curiosity), a plugin is just a class extending net.pms.external.ExternalListener that gets loaded and shutdown by the PMS bootstrap code.

It has to have a default constructor, but that is the only implementation constraint.

The current built-in extension points are:
[*]net.pms.external.StartStopListener, which gets informed of starting and stopping DLNA resources.[/*]
[*]net.pms.external.AdditionalResourceFolderListener, which gets informed each time a new virtual folder is created (?)[/*]

If your plugin needs to be notified of a different event, that will require modification of existing PMS code to generate the notifications.

For further details, I would suggest you reverse-engineer some of the existing plugins and see how they do their stuff.

Best of luck.
User avatar
WorldOfHurt
 
Posts: 252
Joined: Thu Mar 19, 2009 10:49 pm
Location: Winchester, UK

Re: Creating Plugins

Postby WorldOfHurt » Fri Feb 05, 2010 10:21 am

See also some work done by another forum member here
User avatar
WorldOfHurt
 
Posts: 252
Joined: Thu Mar 19, 2009 10:49 pm
Location: Winchester, UK

Re: Creating Plugins

Postby el.botijo » Sun Feb 07, 2010 5:18 pm

I have created my own plugin in almost no time. You can check the source code at:
http://sites.google.com/site/elbotijomm ... erver-mods
The JAR file has the source code in it. Nothing to hide, but lots to be ashamed of! Still, that is a good kickstart for any plugin development.
el.botijo
 
Posts: 50
Joined: Thu Feb 04, 2010 9:14 pm

Re: Creating Plugins

Postby otmanix » Sun Feb 07, 2010 7:24 pm

Hi el.botijo,
I updated the howto which now includes your plugin in the related section: http://ps3mediaserver.org/forum/viewtopic.php?f=6&t=3507
Best regards, Otmanix
I provide NO application support via PM, so please post your question to the forum.
PS3 Media Server related articles on my blog: http://otmanix.de/?cat=11&lang=en
User avatar
otmanix
 
Posts: 528
Joined: Fri Jan 30, 2009 12:40 am
Location: Bavaria, Germany


Return to Additions and Plugins

Who is online

Users browsing this forum: No registered users and 5 guests