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
Area 51 - Testing Area
madVR support in MP1
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="Sebastiii" data-source="post: 1186563" data-attributes="member: 60104"><p>Hi <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>I have added an event on MP side :</p><p></p><p>[code=csharp] public delegate void SetGuiProperties(g_Player.MediaType type, string filename);</p><p></p><p> public static event SetGuiProperties SetGuiPropertiesUpdate;</p><p></p><p>[/code]</p><p></p><p>For MPTVseries and MovingPictures :</p><p></p><p>[code=csharp]</p><p> MediaPortal.GUI.Video.GUIVideoOverlay.SetGuiPropertiesUpdate += new MediaPortal.GUI.Video.GUIVideoOverlay.SetGuiProperties(SetGuiPropertiesUpdate);</p><p></p><p> private void SetGuiPropertiesUpdate(g_Player.MediaType type, string filename)</p><p> {</p><p> if (PlayBackOpIsOfConcern(type, filename))</p><p> {</p><p> SetGUIProperties(false);</p><p> }</p><p> }</p><p>[/code]</p><p></p><p></p><p>[code=csharp]</p><p> MediaPortal.GUI.Video.GUIVideoOverlay.SetGuiPropertiesUpdate += new MediaPortal.GUI.Video.GUIVideoOverlay.SetGuiProperties(SetGuiPropertiesUpdate);</p><p></p><p> private void SetGuiPropertiesUpdate(g_Player.MediaType type, string filename)</p><p> {</p><p> if (CurrentMovie != null)</p><p> {</p><p> SetPlayProperties();</p><p> }</p><p> }[/code]</p><p></p><p>Like this when OSD is done on MP side, an event is sent and subscriber can update on their own without waiting a delay.</p><p></p><p>It seems to work, maybe it's not a good solution, this part should be done in another JIRA + Branch because it is not fully related to madVR, it is just that madVR can trigger this timing issue.</p><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>[USER=52219]@ltfearme[/USER] tagging you for let you know about it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Sebastiii, post: 1186563, member: 60104"] Hi :) I have added an event on MP side : [code=csharp] public delegate void SetGuiProperties(g_Player.MediaType type, string filename); public static event SetGuiProperties SetGuiPropertiesUpdate; [/code] For MPTVseries and MovingPictures : [code=csharp] MediaPortal.GUI.Video.GUIVideoOverlay.SetGuiPropertiesUpdate += new MediaPortal.GUI.Video.GUIVideoOverlay.SetGuiProperties(SetGuiPropertiesUpdate); private void SetGuiPropertiesUpdate(g_Player.MediaType type, string filename) { if (PlayBackOpIsOfConcern(type, filename)) { SetGUIProperties(false); } } [/code] [code=csharp] MediaPortal.GUI.Video.GUIVideoOverlay.SetGuiPropertiesUpdate += new MediaPortal.GUI.Video.GUIVideoOverlay.SetGuiProperties(SetGuiPropertiesUpdate); private void SetGuiPropertiesUpdate(g_Player.MediaType type, string filename) { if (CurrentMovie != null) { SetPlayProperties(); } }[/code] Like this when OSD is done on MP side, an event is sent and subscriber can update on their own without waiting a delay. It seems to work, maybe it's not a good solution, this part should be done in another JIRA + Branch because it is not fully related to madVR, it is just that madVR can trigger this timing issue. :) [USER=52219]@ltfearme[/USER] tagging you for let you know about it :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Area 51 - Testing Area
madVR support in MP1
Contact us
RSS
Top
Bottom