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 2
Plugin Development
Plugin: RefreshRateChanger
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="Lightning303" data-source="post: 1110622" data-attributes="member: 97876"><p>I downloaded the latest weekly and installed it on my laptop and on my HTPC.</p><p>I tried the AtmoLight Beta 2 and my current dev version. With both i could not reproduce a blackscreen/hanging of MP2 after either stopping videoplayback nor ending videoplayback.</p><p></p><p>I did find a bug though, i forgot to add a case for PlayerManagerMessaging.MessageType.PlayerEnded to the message handler, so at the moment, when a video ends on its own, AtmoLight will do nothing. This will result in still capturing the frames (instead of shuting off the leds (default setting)), but that works without a problem here aswell, and it should as you can configure to capture the menu and behave like this.</p><p>Also in the ui capture method everything related to the video frames is in a try catch block.</p><p></p><p>In this post: <a href="https://forum.team-mediaportal.com/threads/plugin-refreshratechanger.125796/page-6#post-1110378" target="_blank">https://forum.team-mediaportal.com/threads/plugin-refreshratechanger.125796/page-6#post-1110378</a></p><p>[USER=106837]@kilik360[/USER] disabled leds for video playback and still encounters the blackscreen problem.</p><p></p><p>What is happening from AtmoLight side in this scenario:</p><p></p><p>Message handler gets called, video started, atmolight tries to change effect to LEDsDisabled, but that is already active, so AtmoLight does nothing.</p><p>The UI capture event gets called every frame.</p><p>First few lines:</p><p></p><p>[code] public void UICapture(object sender, EventArgs args)</p><p> {</p><p> if (!AtmoLightObject.IsConnected() || !AtmoLightObject.IsAtmoLightOn() || AtmoLightObject.GetCurrentEffect() != ContentEffect.MediaPortalLiveMode)</p><p> {</p><p> return;</p><p> }[/code]</p><p></p><p>With IsAtmoLightOn=false and GetCurrentEffect=LEDsDisabled, we will enter this if statement and return.</p><p>When video ends, as i forgot to add that the the message handler, nothing happens in AtmoLight.</p><p></p><p>So, i dont have any clue why AtmoLight would cause a problem here <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" />. But maybe im just blind.</p><p></p><p><a href="https://github.com/ambilight-4-mediaportal/AtmoLight/blob/master/AtmoLight.MediaPortal2/Plugin.cs" target="_blank">https://github.com/ambilight-4-mediaportal/AtmoLight/blob/master/AtmoLight.MediaPortal2/Plugin.cs</a></p></blockquote><p></p>
[QUOTE="Lightning303, post: 1110622, member: 97876"] I downloaded the latest weekly and installed it on my laptop and on my HTPC. I tried the AtmoLight Beta 2 and my current dev version. With both i could not reproduce a blackscreen/hanging of MP2 after either stopping videoplayback nor ending videoplayback. I did find a bug though, i forgot to add a case for PlayerManagerMessaging.MessageType.PlayerEnded to the message handler, so at the moment, when a video ends on its own, AtmoLight will do nothing. This will result in still capturing the frames (instead of shuting off the leds (default setting)), but that works without a problem here aswell, and it should as you can configure to capture the menu and behave like this. Also in the ui capture method everything related to the video frames is in a try catch block. In this post: [url]https://forum.team-mediaportal.com/threads/plugin-refreshratechanger.125796/page-6#post-1110378[/url] [USER=106837]@kilik360[/USER] disabled leds for video playback and still encounters the blackscreen problem. What is happening from AtmoLight side in this scenario: Message handler gets called, video started, atmolight tries to change effect to LEDsDisabled, but that is already active, so AtmoLight does nothing. The UI capture event gets called every frame. First few lines: [code] public void UICapture(object sender, EventArgs args) { if (!AtmoLightObject.IsConnected() || !AtmoLightObject.IsAtmoLightOn() || AtmoLightObject.GetCurrentEffect() != ContentEffect.MediaPortalLiveMode) { return; }[/code] With IsAtmoLightOn=false and GetCurrentEffect=LEDsDisabled, we will enter this if statement and return. When video ends, as i forgot to add that the the message handler, nothing happens in AtmoLight. So, i dont have any clue why AtmoLight would cause a problem here :(. But maybe im just blind. [url]https://github.com/ambilight-4-mediaportal/AtmoLight/blob/master/AtmoLight.MediaPortal2/Plugin.cs[/url] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Plugin: RefreshRateChanger
Contact us
RSS
Top
Bottom