Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

LCD: LCD-Modes (skins) for PVR TV and Radio

  • Loading branch information...
commit b695f8656698b31e3459ef257f8e842133d8f4f8 1 parent 8a2d157
Daniel Scheller herrnst authored
12 userdata/LCD.xml
View
@@ -37,4 +37,16 @@
<line>Playing</line>
<line>$INFO[System.LaunchXBE]</line>
</xbelaunch>
+ <pvrtv>
+ <line>$INFO[VideoPlayer.ChannelName]</line>
+ <line>$INFO[VideoPlayer.Title]</line>
+ <line>$INFO[LCD.PlayIcon] $INFO[Player.Time]/$INFO[Player.Duration]</line>
+ <line>$INFO[LCD.ProgressBar]</line>
+ </pvrtv>
+ <pvrradio>
+ <line>$INFO[MusicPlayer.ChannelName]</line>
+ <line>$INFO[MusicPlayer.Title]</line>
+ <line>$INFO[LCD.PlayIcon] $INFO[Player.Time]/$INFO[Player.Duration]</line>
+ <line>$INFO[LCD.ProgressBar]</line>
+ </pvrradio>
</lcd>
4 xbmc/Application.cpp
View
@@ -2932,6 +2932,10 @@ void CApplication::UpdateLCD()
{
if (g_application.NavigationIdleTime() < 5)
g_lcd->Render(ILCD::LCD_MODE_NAVIGATION);
+ else if (g_PVRManager.IsPlayingTV())
+ g_lcd->Render(ILCD::LCD_MODE_PVRTV);
+ else if (g_PVRManager.IsPlayingRadio())
+ g_lcd->Render(ILCD::LCD_MODE_PVRRADIO);
else if (IsPlayingVideo())
g_lcd->Render(ILCD::LCD_MODE_VIDEO);
else if (IsPlayingAudio())
8 xbmc/utils/LCD.cpp
View
@@ -455,6 +455,14 @@ void ILCD::LoadSkin(const CStdString &xmlFile)
{ // xbe launch mode
LoadMode(mode, LCD_MODE_XBE_LAUNCH);
}
+ else if (strcmpi(mode->Value(), "pvrtv") == 0)
+ { // pvr tv mode
+ LoadMode(mode, LCD_MODE_PVRTV);
+ }
+ else if (strcmpi(mode->Value(), "pvrradio") == 0)
+ { // pvr radio mode
+ LoadMode(mode, LCD_MODE_PVRRADIO);
+ }
mode = mode->NextSiblingElement();
}
TiXmlBase::SetCondenseWhiteSpace(condensed);
2  xbmc/utils/LCD.h
View
@@ -41,6 +41,8 @@ class ILCD : public CThread
LCD_MODE_NAVIGATION,
LCD_MODE_SCREENSAVER,
LCD_MODE_XBE_LAUNCH,
+ LCD_MODE_PVRTV,
+ LCD_MODE_PVRRADIO,
LCD_MODE_MAX
};
enum CUSTOM_CHARSET {
Please sign in to comment.
Something went wrong with that request. Please try again.