mflint;170829 Wrote: > 1. Is there a lump of skeleton plugin code which can be used as the > basis for new development projects? If not, would the SlimServer crew > consider creating and maintaining a "Hello World" plugin? Such a plugin > would (I guess) be less than a couple of Kb in size, and most of that > comments > The problem with a "Hello World" plugin is that it would probably not be maintained and up to date with the latest slimserver changes since the only interest if for new plugin developers.
When I started to developing plugins I looked at other plugins that did something similar. Typically you won't find everything in a single plugin, you might want to look at the player display code in one plugin and at the web interface code in another. Without knowing what type of plugin you are going to write it is hard to give you a good sample. Michaels reference is probably a good start in case you just like something very simple. See also the reference in point 2 below. mflint;170829 Wrote: > 2. Are there any docs available to say which parts of SlimServer > constitute an "API", and which are internal? I didn't see much evidence > of a "best practices" document in the Wiki. I have looked at the code > for other plugins, but there's no guarantee that they're not using > nasty tricksThere is some information available if you goto your slimserver > web interface and goto the menu "Help->Technical Information->Slimserver Plugins" There is actually a very small sample plugin also on this page. mflint;170829 Wrote: > 3. What about any formal API documentation? I'm sure there'll be tons of > routines in SlimServer that would be available for plugin devs to use, > but are not generally known about and therefore often re-invented. How > about a list of callbacks available from SlimServer to plugins?Most callbacks > which is called from slimserver are referenced in point 2 above. Regarding the functions available in slimserver that you can call from your plugin I haven't seen any documentation. Functions called by the plugins included with slimserver should be pretty formal, functions only used by other 3rd party plugins are probably less formal. You should be aware that the slimserver API changes between releases, this was the case between 6.3 to 6.5 and will definitely be the case between 6.5 and 7.0. This will be the case even if you are using only the formal functions. I have only been around since 6.2 and the upgrade to 6.3 didn't require me to change anything in the plugins, the upgrade to 6.5 required quite big changes. I expect the changes in the 7.0 upgrade to be pretty big to since one of the release points on 7.0 is a restructured plugin api. By big changes I mean that I had to spend one of a few days changing the plugin code, compared to the time spent to develop the plugins this is very little. mflint;170829 Wrote: > 4. I wonder which forum would be best suited for discussions about > plugin development? This one seems to be more about announcements and > discussions of released plugins... do all you developers write your > plugins in isolation?From time to time there are some discussions in the > "Developers" and "3rd party plugins" forums, but I think most of the 3'rd party plugins not included with slimserver are developed by single developers with some contributors. You will usually get answers quite fast if you post a specific question either to the "Developers" or "3rd party plugins" forum. -- erland Erland Isaksson 'My homepage' (http://erland.homeip.net) 'My download page' (http://erland.homeip.net/download) (Developer of 'TrackStat' (http://erland.homeip.net/download/do/viewapplication?name=slimserver-trackstat) , 'SQLPlayList' (http://erland.homeip.net/download/do/viewapplication?name=slimserver-sqlplaylist) , 'DynamicPlayList' (http://erland.homeip.net/download/do/viewapplication?name=slimserver-dynamicplaylist), 'Custom Browse' (http://erland.homeip.net/download/do/viewapplication?name=slimserver-custombrowse),'Custom Scan' (http://erland.homeip.net/download/do/viewapplication?name=slimserver-customscan),'Custom Skip' (http://erland.homeip.net/download/do/viewapplication?name=slimserver-customskip) and 'RandomPlayList' (http://erland.homeip.net/download/do/viewapplication?name=slimserver-randomplaylist) plugins) ------------------------------------------------------------------------ erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=31724 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
