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!)
Showing OSD when changing channels in MyTV
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="SePPiE" data-source="post: 10005" data-attributes="member: 10540"><p>Hi Everyone...</p><p></p><p>For the people that like to see the OSD when they're changing channels so you know what's playing and makes a zapper's life easier:</p><p></p><p>Change this in GUIFullscreenTV.cs:</p><p></p><p> public void UpdateOSD()</p><p> {</p><p> if (m_bOSDVisible)</p><p> {</p><p> m_osdWindow.UpdateChannelInfo();</p><p> <strong>m_dwOSDTimeOut=DateTime.Now;</strong></p><p><strong> m_bUpdate = true;</strong></p><p> }</p><p> <strong>else</strong></p><p><strong> {</strong></p><p><strong> m_osdWindow.UpdateChannelInfo();</strong></p><p><strong> Action myaction=new Action();</strong></p><p><strong> myaction.wID = Action.ActionType.ACTION_SHOW_OSD;</strong></p><p><strong></strong></p><p><strong> OnAction(myaction);</strong></p><p><strong> }</strong></p><p> }</p><p></p><p>And change this in GUITVOSD.cs</p><p></p><p></p><p> void OnPreviousChannel()</p><p> {</p><p> if (!Recorder.View) return;</p><p> string strChannel=Recorder.TVChannelName;</p><p> for (int i=0; i < m_channels.Count;++i)</p><p> {</p><p> TVChannel chan=(TVChannel)m_channels<em>;</em></p><p><em> if (strChannel==""||String.Compare(chan.Name,strChannel,true)==0 )</em></p><p><em> {</em></p><p><em> int iPrev=i-1;</em></p><p><em> if (iPrev<0) iPrev=m_channels.Count-1;</em></p><p><em> chan=(TVChannel)m_channels[iPrev];</em></p><p><em> int card=GUITVHome.GetCurrentCard();</em></p><p><em> Recorder.StartViewing(card, chan.Name, Recorder.IsCardViewing(card), Recorder.IsCardTimeShifting(card)) ;</em></p><p><em><strong>m_dateTime = DateTime.Now;</strong></em></p><p><em> SetCurrentChannelLogo();</em></p><p><em> return;</em></p><p><em> }</em></p><p><em> }</em></p><p><em> }</em></p><p><em> </em></p><p><em> void OnNextChannel()</em></p><p><em> {</em></p><p><em> if (!Recorder.View) return;</em></p><p><em> string strChannel=Recorder.TVChannelName;</em></p><p><em> for (int i=0; i < m_channels.Count;++i)</em></p><p><em> {</em></p><p><em> TVChannel chan=(TVChannel)m_channels<em>;</em></em></p><p><em><em> if (strChannel==""||String.Compare(chan.Name,strChannel,true)==0 )</em></em></p><p><em><em> {</em></em></p><p><em><em> int iNext=i+1;</em></em></p><p><em><em> if (iNext>m_channels.Count-1) iNext=0;</em></em></p><p><em><em> chan=(TVChannel)m_channels[iNext];</em></em></p><p><em><em> </em></em></p><p><em><em> int card=GUITVHome.GetCurrentCard();</em></em></p><p><em><em> Recorder.StartViewing(card, chan.Name, Recorder.IsCardViewing(card), Recorder.IsCardTimeShifting(card)) ;</em></em></p><p><em><em><strong>m_dateTime = DateTime.Now;</strong></em></em></p><p><em><em> </em></em></p><p><em><em> SetCurrentChannelLogo();</em></em></p><p><em><em> return;</em></em></p><p><em><em> }</em></em></p><p><em><em> }</em></em></p><p><em><em> }</em></em></p><p><em><em></em></em></p><p><em><em>I hope you guys find this usefull <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> </em></em></p><p><em><em>Frodo, Mario.. Couldn't this be default? This is mostly standard behaviours considering set-top boxes and such do the same...</em></em></p></blockquote><p></p>
[QUOTE="SePPiE, post: 10005, member: 10540"] Hi Everyone... For the people that like to see the OSD when they're changing channels so you know what's playing and makes a zapper's life easier: Change this in GUIFullscreenTV.cs: public void UpdateOSD() { if (m_bOSDVisible) { m_osdWindow.UpdateChannelInfo(); [b]m_dwOSDTimeOut=DateTime.Now; m_bUpdate = true;[/b] } [b]else { m_osdWindow.UpdateChannelInfo(); Action myaction=new Action(); myaction.wID = Action.ActionType.ACTION_SHOW_OSD; OnAction(myaction); }[/b] } And change this in GUITVOSD.cs void OnPreviousChannel() { if (!Recorder.View) return; string strChannel=Recorder.TVChannelName; for (int i=0; i < m_channels.Count;++i) { TVChannel chan=(TVChannel)m_channels[i]; if (strChannel==""||String.Compare(chan.Name,strChannel,true)==0 ) { int iPrev=i-1; if (iPrev<0) iPrev=m_channels.Count-1; chan=(TVChannel)m_channels[iPrev]; int card=GUITVHome.GetCurrentCard(); Recorder.StartViewing(card, chan.Name, Recorder.IsCardViewing(card), Recorder.IsCardTimeShifting(card)) ; [b]m_dateTime = DateTime.Now;[/b] SetCurrentChannelLogo(); return; } } } void OnNextChannel() { if (!Recorder.View) return; string strChannel=Recorder.TVChannelName; for (int i=0; i < m_channels.Count;++i) { TVChannel chan=(TVChannel)m_channels[i]; if (strChannel==""||String.Compare(chan.Name,strChannel,true)==0 ) { int iNext=i+1; if (iNext>m_channels.Count-1) iNext=0; chan=(TVChannel)m_channels[iNext]; int card=GUITVHome.GetCurrentCard(); Recorder.StartViewing(card, chan.Name, Recorder.IsCardViewing(card), Recorder.IsCardTimeShifting(card)) ; [b]m_dateTime = DateTime.Now;[/b] SetCurrentChannelLogo(); return; } } } I hope you guys find this usefull :) Frodo, Mario.. Couldn't this be default? This is mostly standard behaviours considering set-top boxes and such do the same...[/i][/i] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Showing OSD when changing channels in MyTV
Contact us
RSS
Top
Bottom