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 2005-02-07, 12:59   #1 (permalink)
Portal Member
 
Join Date: Jan 2005
Posts: 78
Thanks: 1
Thanked 0 Times in 0 Posts


Default Plugin Architecture

I was wondering how plugins work within MP. Reading here it appears that plugins are actually built into the main source ??

I am a C++ programmer and was looking at an LCD plugin. Could anyone give me any pointers on whether it is possible to build a plugin in C++ and if so what interface there is to get info from MP (track names / sample rate / artist etc)
jameson_uk is offline   Reply With Quote
Old 2005-02-07, 13:05   #2 (permalink)
Retired Team Member
 
mPod's Avatar
 
Join Date: Jan 2005
Location: Berlin
Age: 34
Posts: 2,086
Thanks: 0
Thanked 3 Times in 3 Posts

Country:

My System

Default

It's not build in, but you need the MP source package to build one. When you compiled your plugin you can distribute it apart of MP.
mPod is offline   Reply With Quote
Old 2005-02-07, 13:22   #3 (permalink)
Portal Member
 
Join Date: Jan 2005
Posts: 78
Thanks: 1
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by mPod
It's not build in, but you need the MP source package to build one. When you compiled your plugin you can distribute it apart of MP.
I am @ work at the minute so can not view the source but I will download it when I get home. Before I do though, is there actually an interface that will allow me to get info on the current status (what screen is showing / what is playing etc)
jameson_uk is offline   Reply With Quote
Old 2005-02-07, 13:40   #4 (permalink)
Anonymous
Guest
 
Posts: n/a


Default

For LCD-support see this thread:
http://nolanparty.com/mediaportal.so...topic.php?t=21

Dek
(again points to his signature, search before post!!)
  Reply With Quote
Old 2005-02-07, 14:03   #5 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts


Default Re: Plugin Architecture

Quote:
Originally Posted by jameson_uk
I was wondering how plugins work within MP. Reading here it appears that plugins are actually built into the main source ??

I am a C++ programmer and was looking at an LCD plugin. Could anyone give me any pointers on whether it is possible to build a plugin in C++ and if so what interface there is to get info from MP (track names / sample rate / artist etc)
The main answer is in dek's response above. However I have a few things to add:

The plugins are 'built into the source' for tidiness sake I think... MP will still load individual plugins if they are placed in the correct folders - mediaportal\plugins\process for non-GUI plugins, and mediaportal\plugins\window for window plugins.

If you are using C++ you need to use managed C++ in order to work with MP (unless you're going to use COM which I'm not very familiar with).

There is no fixed interface to get info from MP, its mainly just an aggregration from a number of sources once you work out which module is playing. I've done some coding for this for the web interface. It would be nice to see an actual interface developed though...

Sam
samuel337 is offline   Reply With Quote
Old 2005-02-07, 14:09   #6 (permalink)
Portal Member
 
Join Date: Jan 2005
Posts: 78
Thanks: 1
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by dek
For LCD-support see this thread:
http://nolanparty.com/mediaportal.so...topic.php?t=21

Dek
(again points to his signature, search before post!!)
I have read this thread (and several others) but this is partly something I am doing off my own back. I am half way through creating an LCD app (like Smartie or LCDC). This is really only a personal project at the moment but I would like to interface MP to it.

I guess the more important info was how I could access info such as file stats / artist details etc via C++.
jameson_uk is offline   Reply With Quote
Reply

Bookmarks

Tags
architecture, plugin

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
IPTV@UT Plugin moiristo Plugins 116 2008-10-06 22:32
Plugin architecture changed in recent revs? Hesse Plugins 0 2006-10-31 15:04
Gathering topical infos about plugins (To: authors & use tomtom21000 Plugins 2 2006-02-05 00:20
Plugin example doesnt show in list Anonymous Plugins 5 2005-08-13 12:12


All times are GMT +1. The time now is 05:17.


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