External display (1 Viewer)

A

Anonymous

Guest
Hello! I got a little question.

I know that there is ways to display messages from MP, like Current TV program. Some people have written plugins to lcd-displays.

Is the information accessable through a textfile, xml file, database, or some other way?

If not, Is it possible to get hold of that information from an external win32 program written in Delphi?

Do I need to write a .NET plugin to get the information?

Can anyone bring a little light over this issue?

I want to log the information.

Best regards
Andreas
Sweden
 

Cruiser

Portal Member
October 12, 2006
12
0
38
I know, this thread is very old but I have the same problem as Andreas.
I want to know how I can get the informations. I use VB .Net

Cruiser
 

BadMojoX

Portal Member
March 22, 2008
39
8
Stuttgart
Home Country
Germany Germany
Hello,
i've written a plugin for my custom external display. I've done it the same way, like it was made in the part of the MediaPortal:ExternalDisplay. There is part (object) in MediaPortal GUIPropertyManager which will be used as a storage for various informations. If you assign a new event cacher to the event OnPropertyChanged, you will see what kind of information is available if you do different actions in MediaPortal. So, i think it is not a problem to write a plug-in in VB.nET, because all that you need is the right reference to the dll, containing this object and your event catcher assigned to the event. I'am not sure, that this is possible with Delphi. Suggestion: just get the source code and look in the code.
 

Cruiser

Portal Member
October 12, 2006
12
0
38
thanks for your reply!
Unfortunately, I doesn't understood everything (my english isn't very well).
I don't know which dll I have to use.

Is it possible, that you post the code from your plugin?
It will take a long time when I try to find the right passage in the ExternalDisplay-code.

Thanks for your help!

Cruiser
 

BadMojoX

Portal Member
March 22, 2008
39
8
Stuttgart
Home Country
Germany Germany
Hello,
the dll which you need is Core.dll. The code would be:

using MediaPortal.GUI.Library;
...
GUIPropertyManager.OnPropertyChanged += GUIPropertyManager_OnPropertyChanged;
...
void GUIPropertyManager_OnPropertyChanged(string tag, string tagValue)
{
... // your code
}
Regards
 

Users who are viewing this thread

Top Bottom