2013-11-06, 21:07
I have spent hours trying to find out how I could change the OSD dialog of Confluence to display Remaining Time rather than Total Time. I found an old thread that mentioned an XML file that no longer exists in the current version of Frodo. I tried to find relevant information in the scattered Confluence documentation but found nothing useful. I finally found a thread that had the info I needed but it was somewhat buried. So, at the suggestion of the author, I made a quick summary of the work done by bossanova808 and posted on his blog. It's really simple. All you have to do is add 2 lines to one file.
First you'll have to find the following file:
Code:
VideoFullScreen.xml
On OS X it's in the application's folder :
Code:
/Applications/XBMC.app/Contents/Resources/XBMC/addons/skin.confluence/720p/VideoFullScreen.xml
To show the contents, go to /Applications/XBMC.app, right-click the app, and click 'Show Package Contents'.
It should not be difficult to find on other platforms once you locate the app's folder.
Copy and paste the file so you have a backup.
Open VideoFullScreen.xml in a text editor. TextWrangler is nice because it color codes the text.
Search for the line:
Code:
<label>$LOCALIZE[31049] $INFO[Player.FinishTime]</label>
Comment it out:
Code:
<!-- <label>$LOCALIZE[31049] $INFO[Player.FinishTime]</label> -->
Add this line after it:
Code:
<label>Runtime: $INFO[Player.Duration(hh:mm:ss)] (Ends $INFO[Player.FinishTime])</label>
This line displays the total time of the video and the ending clock time when you press 'I' on your remote or computer.
Now find the following line:
Code:
<label>$INFO[Player.Duration(hh:mm:ss)]</label>
and comment it out:
Code:
<!-- <label>$INFO[Player.Duration(hh:mm:ss)]</label> -->
Now add the following line:
Code:
<label>-$INFO[Player.TimeRemaining(hh:mm:ss)]</label>
I'm not sure if the '-' before '$INFO' is necessary, it probably isn't, but that's how it is in bossanova808's code and it does work so I didn't try to change it.
This line displays the remaining time of the video when you press 'I' or 'M' on your remote or computer.
Save the file and open XBMC. You now should see Time Remaining in the OSD dialog for any video.