diff options
author | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2017-12-16 00:14:50 +0100 |
---|---|---|
committer | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2017-12-19 14:31:50 +0100 |
commit | fdac2af6ebbb058af4078846e141c241c81e271b (patch) | |
tree | 186b0e6b2fd11027fafdfad2c524ca5c6ec49096 /addons/skin.estuary | |
parent | 5a7d312646baf6781c4bba2953ab055b931347df (diff) |
[PVR][guiinfo][skin] Get rid of PVR API functions GetBufferTime(Start|End) and GetPlayingTime. Use PVR API function GetStreamTimes instead. New GUI info labels PVR.EpgEventRemainingTime and PVR.EpgEventFinishTime. Improved documentation for PVR API function GetStreamTimes.
Diffstat (limited to 'addons/skin.estuary')
-rw-r--r-- | addons/skin.estuary/xml/Custom_1109_TopBarOverlay.xml | 10 | ||||
-rw-r--r-- | addons/skin.estuary/xml/DialogSeekBar.xml | 31 | ||||
-rw-r--r-- | addons/skin.estuary/xml/MusicOSD.xml | 32 | ||||
-rw-r--r-- | addons/skin.estuary/xml/Variables.xml | 1 | ||||
-rw-r--r-- | addons/skin.estuary/xml/VideoOSD.xml | 26 |
5 files changed, 89 insertions, 11 deletions
diff --git a/addons/skin.estuary/xml/Custom_1109_TopBarOverlay.xml b/addons/skin.estuary/xml/Custom_1109_TopBarOverlay.xml index ae0afa4237..25a9b6243f 100644 --- a/addons/skin.estuary/xml/Custom_1109_TopBarOverlay.xml +++ b/addons/skin.estuary/xml/Custom_1109_TopBarOverlay.xml @@ -88,8 +88,14 @@ <height>100</height> <width>auto</width> <visible>!String.isempty(Player.Duration)</visible> - <visible>Player.HasVideo + !Player.HasGame</visible> - <visible>!VideoPlayer.Content(LiveTV) | VideoPlayer.HasEpg</visible> + <visible>Player.HasVideo + ![Player.HasGame | VideoPlayer.HasEpg]</visible> + </control> + <control type="label"> + <label>$INFO[PVR.EpgEventFinishTime,$LOCALIZE[31080]: ]</label> + <shadowcolor>text_shadow</shadowcolor> + <height>100</height> + <width>auto</width> + <visible>VideoPlayer.HasEpg</visible> </control> <control type="image"> <top>2</top> diff --git a/addons/skin.estuary/xml/DialogSeekBar.xml b/addons/skin.estuary/xml/DialogSeekBar.xml index bbc7fa4cb0..4d9d7cf93f 100644 --- a/addons/skin.estuary/xml/DialogSeekBar.xml +++ b/addons/skin.estuary/xml/DialogSeekBar.xml @@ -104,7 +104,20 @@ <wrapmultiline>true</wrapmultiline> <animation effect="fade" time="200">VisibleChange</animation> <label>$INFO[Player.TimeRemaining,[COLOR button_focus]$LOCALIZE[31134]:[CR][/COLOR]]</label> - <visible>![Player.ShowInfo | Window.IsVisible(playerprocessinfo)]</visible> + <visible>![Player.ShowInfo | Window.IsVisible(playerprocessinfo) | VideoPlayer.HasEpg]</visible> + </control> + <control type="label"> + <top>110</top> + <right>20</right> + <width>400</width> + <height>50</height> + <align>right</align> + <aligny>center</aligny> + <font>font30</font> + <wrapmultiline>true</wrapmultiline> + <animation effect="fade" time="200">VisibleChange</animation> + <label>$INFO[PVR.EpgEventRemainingTime,[COLOR button_focus]$LOCALIZE[31134]:[CR][/COLOR]]</label> + <visible>![Player.ShowInfo | Window.IsVisible(playerprocessinfo)] + VideoPlayer.HasEpg</visible> </control> </control> <control type="label"> @@ -173,6 +186,7 @@ <info>PVR.timeshiftprogress</info> <texturebg border="3" colordiffuse="60FFFFFF">colors/white50.png</texturebg> <midtexture>colors/white50.png</midtexture> + <visible>VideoPlayer.Content(livetv)</visible> </control> </control> <control type="progress"> @@ -180,10 +194,20 @@ <top>70</top> <width>100%</width> <height>15</height> + <info>PVR.Progress</info> + <texturebg border="3" colordiffuse="60FFFFFF">colors/white50.png</texturebg> + <midtexture colordiffuse="button_focus">colors/white.png</midtexture> + <visible>VideoPlayer.HasEpg</visible> + </control> + <control type="progress"> + <left>0</left> + <top>70</top> + <width>100%</width> + <height>15</height> <info>Player.ProgressCache</info> <texturebg border="3" colordiffuse="60FFFFFF">colors/white50.png</texturebg> <midtexture>colors/white50.png</midtexture> - <visible>!Player.ChannelPreviewActive</visible> + <visible>!VideoPlayer.Content(livetv)</visible> </control> <control type="progress"> <left>0</left> @@ -193,6 +217,7 @@ <info>Player.Progress</info> <texturebg border="3" colordiffuse="60FFFFFF">colors/white50.png</texturebg> <midtexture colordiffuse="button_focus">colors/white.png</midtexture> + <visible>!VideoPlayer.HasEpg</visible> </control> <control type="slider" id="401"> <left>5</left> @@ -202,7 +227,7 @@ <texturesliderbar colordiffuse="00FFFFFF">osd/progress/nub_bar.png</texturesliderbar> <textureslidernib colordiffuse="button_focus">osd/progress/nub_bar.png</textureslidernib> <textureslidernibfocus colordiffuse="button_focus">colors/white.png</textureslidernibfocus> - <visible>!VideoPlayer.Content(livetv)</visible> + <visible>!VideoPlayer.HasEpg</visible> </control> </control> <control type="group"> diff --git a/addons/skin.estuary/xml/MusicOSD.xml b/addons/skin.estuary/xml/MusicOSD.xml index 08a5252db3..dc835c4db5 100644 --- a/addons/skin.estuary/xml/MusicOSD.xml +++ b/addons/skin.estuary/xml/MusicOSD.xml @@ -220,9 +220,8 @@ <textureslidernib>osd/progress/nub_leftright.png</textureslidernib> <textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus> <info>Player.Progress</info> - <visible>Player.SeekEnabled</visible> + <visible>Player.SeekEnabled + !Control.HasFocus(87) + !VideoPlayer.HasEpg</visible> <action>seek</action> - <visible>!Control.HasFocus(87)</visible> </control> <control type="slider"> <left>0</left> @@ -235,9 +234,34 @@ <textureslidernib colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernib> <textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus> <info>Player.Progress</info> - <visible>Player.SeekEnabled</visible> + <visible>Player.SeekEnabled + Control.HasFocus(87) + !VideoPlayer.HasEpg</visible> <action>seek</action> - <visible>Control.HasFocus(87)</visible> + </control> + <control type="slider"> + <left>0</left> + <top>-5</top> + <width>100%</width> + <height>25</height> + <onup>8010</onup> + <ondown>650</ondown> + <texturesliderbar colordiffuse="00FFFFFF">osd/progress/nub_leftright.png</texturesliderbar> + <textureslidernib>osd/progress/nub_leftright.png</textureslidernib> + <textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus> + <info>PVR.Progress</info> + <visible>Player.SeekEnabled + !Control.HasFocus(87) + VideoPlayer.HasEpg</visible> + </control> + <control type="slider"> + <left>0</left> + <top>-5</top> + <width>100%</width> + <height>25</height> + <onup>8010</onup> + <ondown>650</ondown> + <texturesliderbar colordiffuse="00FFFFFF">osd/progress/nub_leftright.png</texturesliderbar> + <textureslidernib colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernib> + <textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus> + <info>PVR.Progress</info> + <visible>Player.SeekEnabled + Control.HasFocus(87) + VideoPlayer.HasEpg</visible> </control> </control> </controls> diff --git a/addons/skin.estuary/xml/Variables.xml b/addons/skin.estuary/xml/Variables.xml index 907d3c57f0..e3824141c4 100644 --- a/addons/skin.estuary/xml/Variables.xml +++ b/addons/skin.estuary/xml/Variables.xml @@ -200,6 +200,7 @@ <variable name="SeekTimeLabelVar"> <value condition="!String.IsEmpty(Player.SeekNumeric)">[B]$INFO[Player.SeekNumeric(hh:mm:ss)][/B]</value> <value condition="Player.Seeking">$INFO[Player.SeekTime]$INFO[Player.Duration, / ]</value> + <value condition="VideoPlayer.HasEpg">$INFO[PVR.Time]$INFO[PVR.Duration, / ]</value> <value>$INFO[Player.Time]$INFO[Player.Duration, / ]</value> </variable> <variable name="VideoOSDHelpTextVar"> diff --git a/addons/skin.estuary/xml/VideoOSD.xml b/addons/skin.estuary/xml/VideoOSD.xml index 51d2c4c9b6..9dacdee956 100644 --- a/addons/skin.estuary/xml/VideoOSD.xml +++ b/addons/skin.estuary/xml/VideoOSD.xml @@ -207,7 +207,7 @@ <textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus> <info>Player.Progress</info> <action>seek</action> - <visible>!Control.HasFocus(87)</visible> + <visible>!Control.HasFocus(87) + !VideoPlayer.HasEpg</visible> </control> <control type="slider"> <top>-5</top> @@ -219,7 +219,29 @@ <textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus> <info>Player.Progress</info> <action>seek</action> - <visible>Control.HasFocus(87)</visible> + <visible>Control.HasFocus(87) + !VideoPlayer.HasEpg</visible> + </control> + <control type="slider"> + <top>-5</top> + <left>0</left> + <width>100%</width> + <height>25</height> + <texturesliderbar colordiffuse="00FFFFFF">osd/progress/nub_leftright.png</texturesliderbar> + <textureslidernib>osd/progress/nub_leftright.png</textureslidernib> + <textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus> + <info>PVR.Progress</info> + <visible>!Control.HasFocus(87) + VideoPlayer.HasEpg</visible> + </control> + <control type="slider"> + <top>-5</top> + <left>0</left> + <width>100%</width> + <height>25</height> + <texturesliderbar colordiffuse="00FFFFFF">osd/progress/nub_leftright.png</texturesliderbar> + <textureslidernib colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernib> + <textureslidernibfocus colordiffuse="button_focus">osd/progress/nub_leftright.png</textureslidernibfocus> + <info>PVR.Progress</info> + <visible>Control.HasFocus(87) + VideoPlayer.HasEpg</visible> </control> </control> </control> |