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
2K
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
1K
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
2K
I am following the official documentation for setting up the Kodi plugin in media portal. I have got no issues with media portal, nor media portal plugin on Kodi, but with the Kodi plugin that must be installed in the media portal, as it is not getting detected. I have made a copy of the dll file into the plugins folder as found in my...
I am following the official documentation for setting up the Kodi plugin in media portal. I have got no issues with media portal...
I am following the official documentation for setting up the Kodi plugin in media portal. I have got no issues with media portal...
Replies
0
Views
319
Got a reply from SD ... "Looks like your last successful download was on 5/23. On 5/24 for some reason we received 194 connections between 10:54 and 11:05 triggering a denial of service attack ban. The logs show it was lifted on 5/25, but I still see the entry in iptables. I reset fail2ban and hopefully you're working again." Weird...
Got a reply from SD ... "Looks like your last successful download was on 5/23. On 5/24 for some reason we received 194...
I'm using MediaPortal 1.38.1 x64 and have an SD-DD lineup account. In the last week, I have not been able to update my EPG, and...
Replies
3
Views
561
Top Bottom