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

From Official Kodi Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 16: Line 16:
<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 and comment it out. It will remove ''runtime'' from the end of the progress bar.
3. 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.
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 but that's how most players show time remaining.
<syntaxhighlight lang="xml"><label>-$INFO[Player.TimeRemaining(hh:mm:ss)]</label></syntaxhighlight>
<syntaxhighlight lang="xml"><label>-$INFO[Player.TimeRemaining(hh:mm:ss)]</label></syntaxhighlight>

Revision as of 20:36, 21 August 2015

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.

1. 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>

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.

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

3. 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>

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 but that's how most players show time remaining.

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