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();
m_dwOSDTimeOut=DateTime.Now;
m_bUpdate = true;
}
else
{
m_osdWindow.UpdateChannelInfo();
Action myaction=new Action();
myaction.wID = Action.ActionType.ACTION_SHOW_OSD;
OnAction(myaction);
}
}
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;
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)) ;
m_dateTime = DateTime.Now;
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;
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)) ;
m_dateTime = DateTime.Now;
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...
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();
m_dwOSDTimeOut=DateTime.Now;
m_bUpdate = true;
}
else
{
m_osdWindow.UpdateChannelInfo();
Action myaction=new Action();
myaction.wID = Action.ActionType.ACTION_SHOW_OSD;
OnAction(myaction);
}
}
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;
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)) ;
m_dateTime = DateTime.Now;
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;
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)) ;
m_dateTime = DateTime.Now;
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...