HOW-TO:Add Time Remaining to Confluence: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
{{mininav| [[Skinning]] | [[Confluence]] }}
{{mininav| [[Skinning]] | [[Confluence]] }}
__FORCETOC__


This tutorial will show how to replace ''runtime'' with '''time remaining''' at the end of the progress bar on the ''Info screen'' {{keypress|I}} and ''OSD'' {{keypress|M}}, and add the ''runtime'' to the bottom of the progress bar on the ''Info screen''. This is achieved by editing [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/VideoFullScreen.xml VideoFullScreen.xml].
This tutorial will show how to replace ''runtime'' with '''time remaining''' at the end of the progress bar on the ''Info screen'' {{keypress|I}} and ''OSD'' {{keypress|M}}, and add the ''runtime'' to the bottom of the progress bar on the ''Info screen''. This is achieved by editing [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/VideoFullScreen.xml VideoFullScreen.xml].
Line 10: Line 11:
</gallery>
</gallery>


1. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/VideoFullScreen.xml VideoFullScreen.xml], find the following line and comment it out. It will remove ''end time'' below the progress bar on the ''Info screen''.
==Add runtime and time remaining to Info screen/OSD==
A. Open the file [https://github.com/xbmc/xbmc/blob/master/addons/skin.confluence/720p/VideoFullScreen.xml VideoFullScreen.xml], find the following line and comment it out. It will remove ''end time'' below the progress bar on the ''Info screen''.
<syntaxhighlight lang="xml"><label>$LOCALIZE[31049] $INFO[Player.FinishTime]</label></syntaxhighlight>
<syntaxhighlight lang="xml"><label>$LOCALIZE[31049] $INFO[Player.FinishTime]</label></syntaxhighlight>


2. Add this after the above line. On the ''Info screen'' it will add ''runtime'' at the bottom of the progress bar and move ''end time'' into brackets.
B. Add this after the above line. On the ''Info screen'' it will add ''runtime'' at the bottom of the progress bar and move ''end time'' into brackets.
<syntaxhighlight lang="xml"><label>Runtime: $INFO[Player.Duration(hh:mm:ss)] (Ends $INFO[Player.FinishTime])</label></syntaxhighlight>
<syntaxhighlight lang="xml"><label>Runtime: $INFO[Player.Duration(hh:mm:ss)] (Ends $INFO[Player.FinishTime])</label></syntaxhighlight>


3. Find the following line and comment it out. It will remove ''runtime'' from the end of the progress bar.
C. Find the following line and comment it out. It will remove ''runtime'' from the end of the progress bar.
<syntaxhighlight lang="xml"><label>$INFO[Player.Duration(hh:mm:ss)]</label></syntaxhighlight>
<syntaxhighlight lang="xml"><label>$INFO[Player.Duration(hh:mm:ss)]</label></syntaxhighlight>


4. Add this after the above line. It will add ''time remaining'' to the end of the progress bar. The hyphen (‐) before $INFO just shows up as is in Kodi GUI, you don't need it.
D. Add this after the above line. It will add ''time remaining'' to the end of the progress bar. The hyphen (‐) before $INFO just shows up as is in Kodi GUI, you don't need it.
<syntaxhighlight lang="xml"><label>-$INFO[Player.TimeRemaining(hh:mm:ss)]</label></syntaxhighlight>
<syntaxhighlight lang="xml"><label>-$INFO[Player.TimeRemaining(hh:mm:ss)]</label></syntaxhighlight>


Line 47: Line 49:
Change '''font12''' to '''font13'''
Change '''font12''' to '''font13'''


==Make "Runtime X (Ends Y)" visible below the progress bar on the ''OSD''too==
==Make runtime/ends visible below the progress bar on the OSD too==
A. Find the following line
A. Find the following line
<syntaxhighlight lang="xml"><visible>!Window.IsVisible(VideoOSD) + !VideoPlayer.Content(LiveTV)</visible></syntaxhighlight>
<syntaxhighlight lang="xml"><visible>!Window.IsVisible(VideoOSD) + !VideoPlayer.Content(LiveTV)</visible></syntaxhighlight>

Revision as of 18:25, 24 May 2016

Home icon grey.png   ▶ Skinning ▶ Confluence ▶ HOW-TO:Add Time Remaining to Confluence


This tutorial will show how to replace runtime with time remaining at the end of the progress bar on the Info screen I and OSD M, and add the runtime to the bottom of the progress bar on the Info screen. This is achieved by editing VideoFullScreen.xml.

Add runtime and time remaining to Info screen/OSD

A. Open the file VideoFullScreen.xml, find the following line and comment it out. It will remove end time below the progress bar on the Info screen.

<label>$LOCALIZE[31049] $INFO[Player.FinishTime]</label>

B. Add this after the above line. On the Info screen it will add runtime at the bottom of the progress bar and move end time into brackets.

<label>Runtime: $INFO[Player.Duration(hh:mm:ss)] (Ends $INFO[Player.FinishTime])</label>

C. Find the following line and comment it out. It will remove runtime from the end of the progress bar.

<label>$INFO[Player.Duration(hh:mm:ss)]</label>

D. Add this after the above line. It will add time remaining to the end of the progress bar. The hyphen (‐) before $INFO just shows up as is in Kodi GUI, you don't need it.

<label>-$INFO[Player.TimeRemaining(hh:mm:ss)]</label>

Change color and font size

A. Find the following code (as is after the above changes):

<control type="label" id="1">
     <left>0</left>
     <top>120</top>
     <width>910</width>
     <height>25</height>
     <!--<label>$LOCALIZE[31049] $INFO[Player.FinishTime]</label>-->
     <label>Runtime: $INFO[Player.Duration(hh:mm:ss)] (Ends $INFO[Player.FinishTime])</label>
     <align>center</align>
     <aligny>center</aligny>
     <font>font12</font>
     <textcolor>grey</textcolor>-->
     <scroll>true</scroll>
     <visible>!Window.IsVisible(VideoOSD) + !VideoPlayer.Content(LiveTV)</visible>
     <animation effect="fade" time="150">VisibleChange</animation>
</control>

B. Change the color of "Runtime X (Ends Y)" to white by commenting out the following:

<textcolor>grey</textcolor>

C. If you don't make runtime visible on the OSD too (if you do both the NEXT button and "Runtime" will overlap), you could also make the font size as e.g. time remaining.
Change font12 to font13

Make runtime/ends visible below the progress bar on the OSD too

A. Find the following line

<visible>!Window.IsVisible(VideoOSD) + !VideoPlayer.Content(LiveTV)</visible>

B. Remove !Window.IsVisible(VideoOSD) + and change it to the following:

<visible>!VideoPlayer.Content(LiveTV)</visible>