Reply to thread

I was browsing the source for MP online.  The MediaPortal.cs file has a section that might be useful:


[CODE]      if (_useScreenSaver)

      {

        if ((GUIGraphicsContext.IsFullScreenVideo && g_Player.Paused == false) || GUIWindowManager.ActiveWindow == (int)GUIWindow.Window.WINDOW_SLIDESHOW || GUIWindowManager.ActiveWindow == _idlePluginWindowId)

        {

          GUIGraphicsContext.ResetLastActivity();

        }

        if (!GUIGraphicsContext.BlankScreen && !Windowed)

        {

          TimeSpan ts = DateTime.Now - GUIGraphicsContext.LastActivity;

          if (ts.TotalSeconds >= _timeScreenSaver)

          {

            if (_useIdleblankScreen)

            {

              if (!GUIGraphicsContext.BlankScreen)

              {

                Log.Debug("Main: Idle timer is blanking the screen after {0} seconds of inactivity", ts.TotalSeconds.ToString("n0"));

              }

              GUIGraphicsContext.BlankScreen = true;

            }

            else if (_useIdlePluginScreen)

            {

              if (_idlePluginWindowId != 0)

              {

                if (!_idlePluginActive)

                {

                  _idlePluginActive = true;

                  Log.Debug("Main: Idle timer is setting the screensaver application after {0} seconds of inactivity", ts.TotalSeconds.ToString("n0"));

                  GUIWindowManager.ActivateWindow(_idlePluginWindowId);


                }

              }

              else... [/CODE]




It seems you might be able to use the IExternalPlayer to register the player as a valid player.  Then when you get your player from the player factory and trigger a play, MP will know that the g_Player is actually playing....


Seems complicated ;) 


Thanks for asking, anyway


Top Bottom