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

Similar threads

I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve this would be to use an auto-resume feature in your external player itself. (MPC-HC can do that, I don't know about VLC)
I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve...
Hello Folks, Is it possible to enable MP to resume in an External Player, where it left off ? I guess the question also is, can...
Replies
2
Views
1K
i think info but I'm really not sure
i think info but I'm really not sure
When I import new films using Moving Pictures, it takes an incredibly long time for the information to be found and downloaded...
Replies
3
Views
703
MP1 MP2 MP-TVSeries DE
Just tried to install it from the extension manger, and the it works like a charm ...
Just tried to install it from the extension manger, and the it works like a charm ...
I just had to reinstall my MePo due to windows 11 upgrade. And since i was told MePo 2 is not being maintaind, i thought well lets...
Replies
4
Views
1K
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
1K
Isn't there anyone who needs the series episode listings in the EPG? Perhaps someone could move this post to the English forum.
Isn't there anyone who needs the series episode listings in the EPG? Perhaps someone could move this post to the English forum.
Since EPG Buddy is no longer working and the 'TV Movie EPG Import ++' plugin is working again, I'm now having trouble completing...
Replies
1
Views
2K
Top Bottom