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
Submit: code patches (MediaPortal/TV-Server/etc.)
Remove unneeded video-windows from code
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="pilehave" data-source="post: 799882" data-attributes="member: 71550"><p>Hi</p><p> </p><p>In The TVPlugin we have TVGuide.cs (mytvguide.xml), that contains some (leftover?) skin controls:</p><p> </p><p>[SkinControl(98)] protected GUIImage videoBackground;</p><p>[SkinControl(99)] protected GUIVideoControl videoWindow;</p><p> </p><p>These controls are not used anywhere in the plugin. In fact, the only place where there is a GUIVideoControl is in TVHome.cs, but this has another ID and is not related to the one at hand.</p><p> </p><p><strong>Why would I remove it?</strong></p><p>Simply because with every skin MP complains about the missing controls. Any skin I know uses the overlay-windows to display video in a corner (if needed).</p><p> </p><p>In addition to this, MediaPortal itself also has this leftover control two places; in GUIHomeBaseWindow.cs (myHome.xml) and in GUIBasicHome.cs (BasicHome.xml).</p><p> </p><p>Here MP even seems to initiate the controls on page load:</p><p> </p><p><strong>GUIHomeBaseWindow.cs</strong>:</p><p>[CODE]</p><p> protected override void OnPageLoad()</p><p> {</p><p> base.OnPageLoad();</p><p> //set video window position</p><p> if (videoWindow != null)</p><p> {</p><p> videoWindow.OnInit();</p><p> }</p><p> }</p><p>[/CODE]</p><p> </p><p>and <strong>GUIBasicHome.cs</strong>:</p><p>[CODE]</p><p> //set video window position</p><p> if (_videoWindow != null)</p><p> {</p><p> GUIGraphicsContext.VideoWindow = new Rectangle(_videoWindow.XPosition, _videoWindow.YPosition,</p><p> _videoWindow.Width, _videoWindow.Height);</p><p> }</p><p>[/CODE]</p><p> </p><p>Why would it do that? Isn't the skin supposed to use the overlay windows to show video?</p><p> </p><p>As far as I can tell, removing these controls and the code with them gives no sideeffects when building and running MediaPortal. I'll be happy to supply patches, but want to get your take on why the code is even there.</p><p> </p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="pilehave, post: 799882, member: 71550"] Hi In The TVPlugin we have TVGuide.cs (mytvguide.xml), that contains some (leftover?) skin controls: [SkinControl(98)] protected GUIImage videoBackground; [SkinControl(99)] protected GUIVideoControl videoWindow; These controls are not used anywhere in the plugin. In fact, the only place where there is a GUIVideoControl is in TVHome.cs, but this has another ID and is not related to the one at hand. [B]Why would I remove it?[/B] Simply because with every skin MP complains about the missing controls. Any skin I know uses the overlay-windows to display video in a corner (if needed). In addition to this, MediaPortal itself also has this leftover control two places; in GUIHomeBaseWindow.cs (myHome.xml) and in GUIBasicHome.cs (BasicHome.xml). Here MP even seems to initiate the controls on page load: [B]GUIHomeBaseWindow.cs[/B]: [CODE] protected override void OnPageLoad() { base.OnPageLoad(); //set video window position if (videoWindow != null) { videoWindow.OnInit(); } } [/CODE] and [B]GUIBasicHome.cs[/B]: [CODE] //set video window position if (_videoWindow != null) { GUIGraphicsContext.VideoWindow = new Rectangle(_videoWindow.XPosition, _videoWindow.YPosition, _videoWindow.Width, _videoWindow.Height); } [/CODE] Why would it do that? Isn't the skin supposed to use the overlay windows to show video? As far as I can tell, removing these controls and the code with them gives no sideeffects when building and running MediaPortal. I'll be happy to supply patches, but want to get your take on why the code is even there. :D [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Submit: code patches (MediaPortal/TV-Server/etc.)
Remove unneeded video-windows from code
Contact us
RSS
Top
Bottom