MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2004-09-18, 08:53   #1 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 37
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default interface for NON-GUI plugins

Hi,

On request i created a (simple) interface for non-gui plugins
its located in guilib/iplugin.cs and has the following interface
Code:
namespace MediaPortal.GUI.Library
{
	public interface IPlugin
	{
             void Start();
             void Stop();
	}
}
When Mediaportal i starting it will look in the folder plugins/proces for dll's implementing this interface. When it finds them the plugin will be loaded and the Start() method will be called
When Mediaportal is stopping the Stop() method will be called

Furthermore the plugin can/may implement the ISetupForm interface
to appear in the setup so users can enable/disable the plugin

Frodo
frodo is offline   Reply With Quote
Old 2004-09-21, 05:37   #2 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Canada
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via MSN to jadz
Default

Frodo,

As far as I can tell, Media Portal is not looking in the plugins/process folder for plugins that have the ISetupForm interface, only the IPlugin interface.

What this means is that if you install a plugin that has the ISetupForm interface in the plugin/process folder, it will not show up in the list of plugins to configure.

The current work around for this in 0.0.0.9 is to install the plugin to both the plugins/process and the plugins/windows folder.

The actual plugin is run from the plugin/process folder, but to get it to show up in the configuration window (and get to the plugins setup screens) you have to have a copy in the plugins/windows folder too.

I have tested this to be the case with 0.0.0.9 and my WinLIRC Plugin (BETA TESTING).
__________________
jadz|www
WinLIRC plugin | Startup Utility Plugin
<- outdated
jadz is offline   Reply With Quote
Old 2004-09-21, 16:21   #3 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 37
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

right,
i will have to modify the configuration.exe a bit
so your plugin shows up
frodo
frodo is offline   Reply With Quote
Old 2005-02-20, 19:49   #4 (permalink)
Portal Member
 
Join Date: Dec 2004
Location: Germany
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Will this also work when I put it into the folder plugins/windows?

I need a combined process/windows plugin.
It seems that I have to put the non-gui plugin into the process folder and the gui plugin into the windows folder. The thing is that I actually want to use only one assembly.
__________________

HTPC:
P3-S 1133@1133@1,1V passiv
ASUS TUSL2-M
Skystar 2
Creative Soundblaster
nVidia FX5200
120G Samsung SV1204
Toshiba SD-M1712 (Silent Firmware)
--------------------------------------------
PVR Scheduler with MediaPortal Plugin
http://www.pvr-scheduler.de
STSC is offline   Reply With Quote
Reply

Bookmarks

Tags
interface, nongui, plugins

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mediaportal crash after tv setup in settings/setup wizard zimmerkid Codecs, External Players 1 2007-01-18 06:17
cannot get tv picture at all! dreamer06 General Support 3 2006-04-14 03:31
Plugins: NOT User-friendly! MyHTPC allover again:-( msj33 Website/Forum/Wiki Feedback 14 2006-04-11 13:08
Gathering topical infos about plugins (To: authors & use tomtom21000 Plugins 2 2006-02-05 00:20


All times are GMT +1. The time now is 09:55.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden