Disable and Enable Irtrans (1 Viewer)

neme5i5

Portal Member
June 8, 2006
13
0
Use Case:

Erick would like mediaportal to launch an external program that excepts commands from iRtrans.

Solution:

I developed a plugin that will launch any program I want with any label that I want. For example, I have an BeyondTV button in the main menu (Home) that when clicked minimizes the mediaportal interface and launches BeyondTV. I use a MediaCenter remote to control BeyondTV using the app.cfg file. MediaPortal is configured as a client for irTrans. Thus it listens for events from the irTrans server.

Problem:

When BeyondTV is maximized and has focus, MediaPortal is still listening and responding to commands from the irTrans server. Is there any exposed API that I can call that will allow me to disable the InputDevice? And renable it once I close BeyondTV.

Note: BeyondTV is strickly an arbitrary example.
 

neme5i5

Portal Member
June 8, 2006
13
0
After examining the MediaPortal code base a bit more there are two static commands that work very well.

InputDevices.Stop();
and
InputDevices.Init();
 

Users who are viewing this thread

Top Bottom