home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Plugin with external player, how to tell MP to not run Screensasver?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="geoffstewart" data-source="post: 1059506" data-attributes="member: 83396"><p>I was browsing the source for MP online. The <a href="http:// https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs" target="_blank">MediaPortal.cs</a> file has a section that might be useful:</p><p></p><p>[CODE] if (_useScreenSaver)</p><p> {</p><p> if ((GUIGraphicsContext.IsFullScreenVideo && g_Player.Paused == false) || GUIWindowManager.ActiveWindow == (int)GUIWindow.Window.WINDOW_SLIDESHOW || GUIWindowManager.ActiveWindow == _idlePluginWindowId)</p><p> {</p><p> GUIGraphicsContext.ResetLastActivity();</p><p> }</p><p> if (!GUIGraphicsContext.BlankScreen && !Windowed)</p><p> {</p><p> TimeSpan ts = DateTime.Now - GUIGraphicsContext.LastActivity;</p><p> if (ts.TotalSeconds >= _timeScreenSaver)</p><p> {</p><p> if (_useIdleblankScreen)</p><p> {</p><p> if (!GUIGraphicsContext.BlankScreen)</p><p> {</p><p> Log.Debug("Main: Idle timer is blanking the screen after {0} seconds of inactivity", ts.TotalSeconds.ToString("n0"));</p><p> }</p><p> GUIGraphicsContext.BlankScreen = true;</p><p> }</p><p> else if (_useIdlePluginScreen)</p><p> {</p><p> if (_idlePluginWindowId != 0)</p><p> {</p><p> if (!_idlePluginActive)</p><p> {</p><p> _idlePluginActive = true;</p><p> Log.Debug("Main: Idle timer is setting the screensaver application after {0} seconds of inactivity", ts.TotalSeconds.ToString("n0"));</p><p> GUIWindowManager.ActivateWindow(_idlePluginWindowId);</p><p></p><p> }</p><p> }</p><p> else... [/CODE]</p><p></p><p></p><p></p><p>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.... </p><p></p><p>Seems complicated <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> </p><p></p><p>Thanks for asking, anyway</p></blockquote><p></p>
[QUOTE="geoffstewart, post: 1059506, member: 83396"] I was browsing the source for MP online. The [URL='http:// https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs']MediaPortal.cs[/URL] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Plugin with external player, how to tell MP to not run Screensasver?
Contact us
RSS
Top
Bottom