Catching events when TV recorder/viewing starts and ends? (1 Viewer)

ziphnor

Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    Hi,

    Im trying to create a plugin to manage the power scheme based on the state of mediaportal, ie switch power schemes when MP is recording or showing TV and when it stops.

    Im having trouble catching the messages i were expecting. I have registrered as follows:
    Code:
    GUIWindowManager.Receivers += new SendMessageHandler(ExtraOnMessage);
    GUIGraphicsContext.Receivers += new SendMessageHandler(ExtraOnMessage);

    When TV viewing starts and stops i see
    GUI_MSG_PLAYBACK_STOPPED
    GUI_MSG_PLAYBACK_STARTED
    messages, but when just using the recorder im not seeing any of those messages, i was hoping to see one or more of the following:

    GUI_MSG_RECORDER_ALLOC_CARD
    GUI_MSG_RECORDER_FREE_CARD
    GUI_MSG_RECORDER_STOP_TIMESHIFT
    GUI_MSG_RECORDER_STOP_TV
    GUI_MSG_RECORDER_STOP_RADIO

    Im a bit confused as to how events and states are handled in MediaPortal and would appreciate any hints anyone can give. I just want to get notified when a TV card starts being used, and when it stops being used.
     

    Users who are viewing this thread

    Top Bottom