Media Portal TCP control interface (1 Viewer)

PoggoW

New Member
May 6, 2009
3
0
Home Country
Belgium Belgium
Hello,

I'm a quiet new user of Media Portal and I've already started a small process plugin dev.
I would like to implement a control interface for Media Portal over a TCP port.
The process is a TCP server that can use bi-directionnal control of Media Portal so if a client connects on the port and send a command such as "PLAY" the current selected file will be played or smth like that.
I also want to retrieve general information like current active file, movie, duration, title, ...

So I would like to know what are the transport commands (arrows, accept, back, ...) and control command (play, stop, pause, fwd, previous, next subtitle, ...). what is the class I'm supposed to use?

And what is the class/properties I've to use to get the feedback from the current song, movie, ...

I hope that my request was clear and that someone will be able to answer my questions.

:D in advance,
Regards,


Kevin
 

PoggoW

New Member
May 6, 2009
3
0
Home Country
Belgium Belgium
Ok, I think I found the way to control the actions.

MediaPortal.GUI.Library.Action action = new MediaPortal.GUI.Library.Action(MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_LEFT, 0, 0);
GUIGraphicsContext.OnAction(action);

I have to test the functions but everything should work.
However I'm still interessed in getting the Class to use to get the feedback.
I noticed that it's possible to get the play state thru the Player class :

MediaPortal.Player.IPlayer IP = new IPlayer();
with IP.Playing, IP.Paused, ...
But I would like to use more functions.
Do I have to use Playlists.PlaylistPlayer, Playlists.Playlist, Playlists.PlaylistItem or others?

Thx,

Kevin
 

cheezey

Community Plugin Dev
August 26, 2004
1,560
312
56
West Yorks, UK
Home Country
United Kingdom United Kingdom
I have already written this as part of the iPiMP suite and will be developing it into a generic plugin soon. It allows remote control, browsing the music & video databases and now playing functionality.

There is no MediaPortal API documentation so you just have to trawl through the source code.
 

PoggoW

New Member
May 6, 2009
3
0
Home Country
Belgium Belgium
Hi,

Will it be available thru a network connection, because I want this plugin to be by example controllage thru a control system like crestron, amx, .. or a pc thru a dedicated dll?

Thx for your reply,

Kevin

Edit:

I just had a quick look to your installation manual, and it looks like you did a great job however I'll need to send a command directly to the TCP port in text (or in binary) in order to be able to use the plugin with a tierce party controller.
How do you use the port? Is-it thru a .Net library or thru text or binary command?

Thx
 

Users who are viewing this thread

Top Bottom