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

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
This tutorial will show how to add '''time remaining''' to the ''Info screen'' {{keypress|I}} and ''OSD'' {{keypress|M}} at the end of the progress bar, and move the ''run time'' 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 ''run time'' with ''time remaining'' at the end of the progress bar on the ''Info screen'' {{keypress|I}} and ''OSD'' {{keypress|M}}, and add the ''run time'' 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].


<gallery widths=500px heights=313px>
<gallery widths=500px heights=313px>
Line 8: Line 8:
</gallery>
</gallery>


Open ''VideoFullScreen.xml'' and find this line, comment it out. It will remove ''end time'' below the progress bar on the ''Info screen''.
1. Open the file ''VideoFullScreen.xml'' and find this line, comment it out. It will remove ''end time'' below the progress bar on the ''Info screen''.
<pre><label>$LOCALIZE[31049] $INFO[Player.FinishTime]</label></pre>
<syntaxhighlight lang="xml"><label>$LOCALIZE[31049] $INFO[Player.FinishTime]</label></syntaxhighlight>


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


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


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.
<pre><label>-$INFO[Player.TimeRemaining(hh:mm:ss)]</label></pre>
<syntaxhighlight lang="xml"><label>-$INFO[Player.TimeRemaining(hh:mm:ss)]</label></syntaxhighlight>

Revision as of 07:17, 19 July 2015

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

1. Open the file VideoFullScreen.xml and find this line, 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 run time at the bottom of the progress bar and add end time into brackets.

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

3. Find this line and comment it out. It will remove run time 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.

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