How to observe the player's status as a plugin? (1 Viewer)

mckirk

MP Donator
  • Premium Supporter
  • May 18, 2009
    44
    6
    Hi there,

    I am currently working on a little test plugin. It is supposed to do something when the player starts, pauses and stops.

    Unfortunately, I cannot find any documentation about this. I created a process plugin and added the action to perform. I am only missing the glue to the events.

    Any ideas?

    Thank you,
    mckirk
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,989
    5,669
    France - IDF
    Home Country
    France France
    i can only post an sample of Atmolight plugin based on player event :
    Code:
     if (atmoCtrl != null)
    {
    g_Player.PlayBackStarted += new g_Player.StartedHandler(g_Player_PlayBackStarted);
    g_Player.PlayBackStopped += new g_Player.StoppedHandler(g_Player_PlayBackStopped);
    g_Player.PlayBackEnded += new g_Player.EndedHandler(g_Player_PlayBackEnded);
    but Dev can help you
     

    mckirk

    MP Donator
  • Premium Supporter
  • May 18, 2009
    44
    6
    Great, found it and got it working.

    I cannot, however, find an event which es triggered when the player changes its fullscreen state (back and forth). Any ideas?
     

    Scrounger

    Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    514
    Stuttgart
    Home Country
    Germany Germany
    Great, found it and got it working.

    I cannot, however, find an event which es triggered when the player changes its fullscreen state (back and forth). Any ideas?
    Perhaps you can use the width / height properties of g_player (in combination with a timer) to detect changes to fullscreen and back.
    Its just an idea, never tested it!
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom