Output-PlugIn fox external Programms (1 Viewer)

civicoid

Portal Member
March 24, 2006
18
0
Germany
Is there a plugin for MP that provides information about current playing title etc.

I need this plugin to merge this with an external programm.
 

civicoid

Portal Member
March 24, 2006
18
0
Germany
Than you for your fast reply.
i've installed the 'external control plugin' from the web interface.
but i dont know how to handle with this one.
is there a short description about this this plugin?
 

civicoid

Portal Member
March 24, 2006
18
0
Germany
Hope to get informed " as soon as possible by "sam

while i'm testing the webinterface-plugin i find out
how to get information about the selected window
and choosen files

in fact i need an plugin that provides information like the
lcd-plugin ...

for example the current playing title, time ...

is there an other oppertunity to get these information?

i need this to generate an new plugin ...

thx
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
Ok, here's how the plugin works.

Are you using .NET to write your plugin? If so you have two options - connect directly to the plugin or connect to the web service.

To connect to the web service, in .NET just add a web reference to the web service. To connect to the plugin, add a reference to ECP2Assembly.dll (should be located in your MP folder).

Ok, to use the plugin to get details about the currently playing item, do this:
Using the get_MPPropertyManager method, pass the following 'tags' as the property in the method to get the relevant information (the tag is the first bit of each line, e.g. #Play.Current.Thumb and the bit after the comma in each line is an example of what information it returns):

#Play.Current.Thumb, thumbs\music\albums\3 Doors Down-Away From The Sun.jpg
#Play.Current.File, 3 Doors Down - Away From The Sun - 01 - When I'm Gone.mp3
#Play.Current.Title, 3 Doors Down - Away From The Sun - 01 - When I'm Gone.mp3
#Play.Current.Genre, Rock
#Play.Current.Title, When I'm Gone
#Play.Current.Artist, 3 Doors Down
#Play.Current.Album, Away From The Sun
#Play.Current.Track, Track1
#Play.Current.Year, Year:2002
#Play.Current.Duration, Duration:4:21

These tags above should work regardless of what you're playing, including Music, videos, TV shows, live TV etc.

Music-specific:
#Play.Next.Thumb, thumbs\music\albums\3 Doors Down-Away From The Sun.jpg
#Play.Next.File, 3 Doors Down - Away From The Sun - 02 - Away From The Sun.mp3
#Play.Next.Genre, Rock
#Play.Next.Title, Away From The Sun
#Play.Next.Artist, 3 Doors Down
#Play.Next.Album, Away From The Sun
#Play.Next.Track, Track2
#Play.Next.Year, Year:2002
#Play.Next.Duration, Duration:3:53
#currentplaytime, 0:00
#currentremaining, 4:21

TV-specific:
#duration, 1:52

#TV.View.channel
#TV.View.thumb
#TV.View.start
#TV.View.stop
#TV.View.remaining
#TV.View.genre
#TV.View.title
#TV.View.description

#TV.Next.start
#TV.Next.stop
#TV.Next.genre
#TV.Next.title
#TV.Next.description

#TV.Record.channel
#TV.Record.start
#TV.Record.stop
#TV.Record.genre
#TV.Record.title
#TV.Record.description
#TV.Record.thumb

To connect to the web service using a web browser to test it, simply log on to http://<MP computer name>:81/MPExtControlWS/service.asmx (replace <MP computer name> with your MP computer's computer name).

Once connected, click on the get_MPPropertyManager link, enter in the tag name (including the #) and press submit. You'll get a response back in XML format.

To use it in your .NET plugin, simply add a web reference to the web service, or add a reference to the ECP2Assembly.dll file. It is probably easier to use the web service, however this does mean that MPW needs to be running for it to work.

If you're connecting to the ECP2 plugin directly, as long as MP is running and the plugin is activated, it will work. Once you have referenced the plugin, to use the plugin, simply do this:

ECP2Assembly.MPHandler.Instance.get_GUIPropertyManager("#Play.Current.Title");

Replace the #Play.Current.Title tag with another tag as appropriate.

HTH

Sam
 

Ben

Portal Member
April 3, 2006
47
0
My understanding

Does the plugin only get the information actively? Meaning that I constantly have to request info?

Tnx

Ben
 

Users who are viewing this thread


Write your reply...

Similar threads

i love how subtitles are implemented in the MP2 videoplayer, this is just perfect. 1080p playback is also very good. But video playback in MP2 is buggy when playing 4k material. Therefore: PLEASE add an option for an external video player! I'd LOVE to have VLC back as videoplayer, like in MP1! This works perfectly. You will make a...
i love how subtitles are implemented in the MP2 videoplayer, this is just perfect. 1080p playback is also very good. But video...
i love how subtitles are implemented in the MP2 videoplayer, this is just perfect. 1080p playback is also very good. But video...
Replies
0
Views
293
For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for any entry in your music database: Artist, Album, Title, Lyrics... I'm afraid there is no such plugin :unsure:
For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for...
HI, I'm new to MediaPortal and have a question about searching for data. I have an extensive collection of music, films, and TV...
Replies
1
Views
847
I'm trying to get a KodiClient running with MP-Server 1.36. I have access to the server ((Program information is loading), but I can't access c:\ProrammData\Mediaportal\...\timeshift. What permissions do I still need to set?
I'm trying to get a KodiClient running with MP-Server 1.36. I have access to the server ((Program information is loading), but I...
I'm trying to get a KodiClient running with MP-Server 1.36. I have access to the server ((Program information is loading), but I...
Replies
0
Views
596
I agree about the dash instead of colon on the LIVE thing. I did a little change to get the current program, just removed the D from the tags. Not that important, so I dont upload any new file. A little sad about the end time, but nothing to do about it.
I agree about the dash instead of colon on the LIVE thing. I did a little change to get the current program, just removed the D...
I'm trying to develop a new WebEPG grabber for sweden, but I got a few problem in parsing the html-file to get all programs. In...
Replies
9
Views
1K
MP1 MP2 EPGCleaner for x64 DE
Thanks. Worked perfectly. The installer won’t work but dropping the DLL in worked.
Thanks. Worked perfectly. The installer won’t work but dropping the DLL in worked.
Hi there I've just made the switch from a working and stable 1.36 x86 installation (Standalone TVServer and a TVClient both...
Replies
3
Views
739
Top Bottom