View Full Version : [MOD] End Time Modification
hikaricore
2009-03-30, 22:57
***UPDATE*** For a much better implementation of this idea see stendec's post here:
http://xbmc.org/forum/showpost.php?p=306723&postcount=11
~
Originally found here: http://xbmc.org/forum/showpost.php?p=279266&postcount=47
Edited to fit Aeon Stark.
Replace (at the bottom of DialogSeekBar.xml) :
</controls>
</window>
With this.
<!-- New Finish Time Lable -->
<control type="label">
<description>Time finish lable</description>
<posx>1195</posx>
<posy>658</posy>
<include>scraperimdbtitle</include>
<label>End Time</label>
<width>160</width>
<height>16</height>
<font>Font_OSDTime</font>
<visible>!Player.Seeking</visible>
</control>
<control type="label">
<description>Time finish</description>
<posx>1175</posx>
<posy>680</posy>
<include>scraperimdb</include>
<info>Player.FinishTime</info>
<width>100</width>
<height>16</height>
<align>center</align>
<font>Font_OSDTime</font>
<visible>!Player.Seeking</visible>
</control>
<!-- ------------ -->
</controls>
</window>
End time shows in the bottom right hand corner of the screen when paused and skipping around a video.
Tested only on 720p, I have no idea how this will work for everyone else out there, just sharing. :p
All credit goes to where ever the hell this came from to being with.
coredalae
2009-03-31, 01:18
so this adds a extra value in the right bottom of the bar that displays time + timeleft of video?
sounds awsome
'will check this out'
EDIT:
this is nice, tbh it should be default.
hikaricore
2009-03-31, 02:21
It just gives you the actual time the video will be over for those on a tight schedule. :)
Works out great for me when I'm trying to finish an episode of SG1 before work.
hikaricore
2009-03-31, 02:33
http://img.photobucket.com/albums/v414/hikari_corgan/Screenshot-1-2.jpg
To alleviate any confusion. :)
Nice work just what stark needed. thanks
This is very cool, so it shows what time the movie ends? I'd actually just like a clock. How hard would it be to mod this just to show a clock with the current time?
hikaricore
2009-03-31, 08:55
I've actually been thinking of doing just that.
I'll put it on the other side when i get a chance if someone doesn't beat me to it. :p
Sweet. You're the man. If you're going to keep the end time and the clock, maybe you could put the clock in the top right or left hand corner? Maybe that's more complex to code though? Whatever, as long as I can get a clock I'm happy.
great dude, works perfect for me, keep it up, and @djh maybe we can have this in final release to turn on and off? would be awesome
I've put together my own version of a modification to show the Time and Finish Time. First of all, they show up both on the seeking bar and on the OSD with controls. They're nested properly so that they fade in and out with the OSD, and the modification recalls the "Time" and "Finish Time" text from the localization table for any non-English speakers out there (though a couple of languages run out of room, causing the text to cut off). I also made a modification to the customization screen to place an option to enable/disable the Time and Finish Time display on the General tab (lacking somewhere nicer to place it), though that doesn't use localization (since it's not already translated and that'd just end up with the end user having to change one more file).
Presenting, a screenshot...
http://img.photobucket.com/albums/v316/Stendec/XBMC%20with%20Aeon/XBMC-AeonMod-FinishTime.jpg
Installation then...
Open 720p/DialogSeekBar.xml
At the end of the document, Find:
</control>
</controls>
</window>
Replace With:
<control type="label">
<posx>20</posx>
<posy>37</posy>
<width>87</width>
<height>25</height>
<font>Font_OSDTime</font>
<textcolor>60ffffff</textcolor>
<label>$LOCALIZE[555]</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
</control>
<control type="label">
<posx>20</posx>
<posy>60</posy>
<width>87</width>
<height>25</height>
<font>Font_OSDTime</font>
<label>$INFO[System.Time]</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
</control>
<control type="label">
<posx>1260</posx>
<posy>37</posy>
<width>87</width>
<height>25</height>
<font>Font_OSDTime</font>
<align>right</align>
<textcolor>60ffffff</textcolor>
<label>$LOCALIZE[31710]</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
</control>
<control type="label">
<posx>1260</posx>
<posy>60</posy>
<width>87</width>
<height>25</height>
<font>Font_OSDTime</font>
<align>right</align>
<label>$INFO[Player.FinishTime]</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
</control>
</control>
</controls>
</window>
Open 720p/VideoOSD.xml
At the end of the document, Find:
</control>
</controls>
</window>
Replace With:
<control type="label">
<posx>20</posx>
<posy>37</posy>
<width>87</width>
<height>25</height>
<font>Font_OSDTime</font>
<textcolor>60ffffff</textcolor>
<label>$LOCALIZE[555]</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
</control>
<control type="label">
<posx>20</posx>
<posy>60</posy>
<width>87</width>
<height>25</height>
<font>Font_OSDTime</font>
<label>$INFO[System.Time]</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
</control>
<control type="label">
<posx>1260</posx>
<posy>37</posy>
<width>87</width>
<height>25</height>
<font>Font_OSDTime</font>
<align>right</align>
<textcolor>60ffffff</textcolor>
<label>$LOCALIZE[31710]</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
</control>
<control type="label">
<posx>1260</posx>
<posy>60</posy>
<width>87</width>
<height>25</height>
<font>Font_OSDTime</font>
<align>right</align>
<label>$INFO[Player.FinishTime]</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
</control>
</control>
</controls>
</window>
Open 720p/Customization.xml
Find:
<control type="radiobutton" id="405">
<include>Objects_SettingsDefaultRadioButton</include>
<label>31280</label>
<onclick>Skin.ToggleSetting(debug)</onclick>
<selected>Skin.HasSetting(debug)</selected>
</control>
Insert After:
<control type="radiobutton" id="406">
<include>Objects_SettingsDefaultRadioButton</include>
<label>Display Time / Finish Time on Video OSD</label>
<onclick>Skin.ToggleSetting(FinishTimeOnVideoOSD)</onclick>
<selected>Skin.HasSetting(FinishTimeOnVideoOSD)</selected>
</control>
Close and Save All, Enjoy
RodrigoG
2009-03-31, 23:21
Thanks!! ;-D
I've put together my own version of a modification to show the Time and Finish Time. First of all, they show up both on the seeking bar and on the OSD with controls. They're nested properly so that they fade in and out with the OSD, and the modification recalls the "Time" and "Finish Time" text from the localization table for any non-English speakers out there (though a couple of languages run out of room, causing the text to cut off). I also made a modification to the customization screen to place an option to enable/disable the Time and Finish Time display on the General tab (lacking somewhere nicer to place it), though that doesn't use localization (since it's not already translated and that'd just end up with the end user having to change one more file).
Do these need to be added in addition to the original mod or separately?
Do these need to be added in addition to the original mod or separately?
My changes are separate from the original listing. I just didn't want to make a new topic since it's the same functionality.
No problem. Looks very nice by the way.
Montellese
2009-03-31, 23:58
Yeah nice work and thanks a lot.
hikaricore
2009-04-01, 00:13
Nice. ^_^ Looks like I don't need to much around with it anymore after all. :)
I've updated my original post with a link to stendec's version. :p
automated
2009-04-01, 00:56
This is excellent.
Does anyone know how to change my clock to 12hour time? it's on 24hour at the moment. I'm using the windows version if that makes any difference.
This is excellent.
Does anyone know how to change my clock to 12hour time? it's on 24hour at the moment. I'm using the windows version if that makes any difference.
I know there's now the option to use 12hr or 24hr clock for the UK in the Region settings so it should be possible.
Is this update in the sticky mod pack?
dbldown768
2009-04-01, 04:54
i must be stupid... i tried this twice with no luck. Nothing breaks, but i do not see any extra timers? could someone attach their files for installation?
i must be stupid... i tried this twice with no luck. Nothing breaks, but i do not see any extra timers? could someone attach their files for installation?
Did you enable the time display in the Customize > Advanced -> General menu? You have to do that before they'll show up.
As you requested though, the files in question. The added lines are highlighted in yellow or whatever:
Customization.xml (http://pastebin.com/m4800e8a3)
VideoOSD.xml (http://pastebin.com/d470326e0)
DialogSeekBar.xml (http://pastebin.com/d5afb4bbb)
dbldown768
2009-04-01, 05:09
oops... no i didnt do that... that is probably why. Thanks.
I've put together my own version of a modification to show the Time and Finish Time.
[snip]
I also made a modification to the customization screen to place an option to enable/disable the Time and Finish Time display on the General tab
Works great once I too noticed you had to turn it on in settings. - thank you stendec
-stoli-
automated
2009-04-01, 10:33
I know there's now the option to use 12hr or 24hr clock for the UK in the Region settings so it should be possible.
Thanks, I changed it to UK 12HR (it was on australia). Does this setting effect anything else or is it just the clock?
Thanks, I changed it to UK 12HR (it was on australia). Does this setting effect anything else or is it just the clock?
It affects the date format as well but you use the same as the UK anyway so no difference for you.
How can I change this to say End instead of Finish Time?
How can I change this to say End instead of Finish Time?
By default, it pulls the text 'Finish Time' from the localization string 31710. You may override the text it displays by altering the <label> attribute of the control. The following example will replace the 'Finish Time' string with 'End Time'.
Open 720p/DialogSeekBar.xml
Find:
<label>$LOCALIZE[31710]</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
Replace With:
<label>End Time</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
Open 720p/VideoOSD.xml
Find:
<label>$LOCALIZE[31710]</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
Replace With:
<label>End Time</label>
<visible>Skin.HasSetting(FinishTimeOnVideoOSD)</visible>
Save and Close All Files, Enjoy
thank you. I was looking in the wrong .xml. I was on the right track looking at osd related stuff but did not look in dialogseekbar.xml, although that makes sense now lol....
onesojourner
2009-04-08, 02:02
this should be in stark by default. very nice work.
mrcanngo
2009-04-12, 14:25
I did this and it worked but now when i fast forward or skip, the bar doesn't show up anymore.
If i push enter first to bring up the seek bar i can see the info but otherwise it will just fast forward or rewind without showing the seek bar and time start/finish.
hikaricore
2009-04-12, 16:23
You likely did something wrong or missed a step. Be sure to use the latest mod by stendec and not mine.
boxterduke
2009-04-30, 21:21
Hello, does the this mod work with Auriga?
I tried the stendec mod by changing the specified files (tried it twice) with no luck.
The option does not show under the general portion of the advanced Aeon settings.
Thanks for the help.
boxterduke
2009-04-30, 23:03
Hello, does the this mod work with Auriga?
I tried the stendec mod by changing the specified files (tried it twice) with no luck.
The option does not show under the general portion of the advanced Aeon settings.
Thanks for the help.
Update, it does not look like it works with Auriga. I just tried Stark and it worked with it. Anyone coming up with an update for Auriga?
Tanks
You know Auriga does have current and end time on the OSD already...
boxterduke
2009-04-30, 23:53
You know Auriga does have current and end time on the OSD already...
Thanks djh, just got it to work. :grin:
I've got the progress bar and current/total running time but not the actual time the video will end.
pletopia
2009-05-01, 00:06
You know Auriga does have current and end time on the OSD already...
I've got the progress bar and current/total running time but not the actual time the video will end.
are we missing something cause all i see is the default progress bar .. no current time .. no end time
boxterduke
2009-05-01, 00:06
I've got the progress bar and current/total running time but not the actual time the video will end.
I had the same thing, I wanted djh's submenu but with the rest of cf2009's mods. So I started hunting around for similar ones and got all to work except this mod in this thread.
But I just noticed that cf2009 updated his mod to include a version with no submenu. So now I have djh'a submenu and cf2009's mod that include end time of movie.
http://github.com/cf2009/aeon-modpack/commits/Withoutsubmenu
http://xbmc.org/forum/showthread.php?t=48435
To recap, this mod here in this thread does not work with Auriga but works with Stark.
hikaricore
2009-05-01, 03:13
You know Auriga does have current and end time on the OSD already...
It shows only on the menu and pause screens.
The current progress bar is the same as the one for the music player which I thought was an intended change.
Pr.Sinister
2009-05-01, 04:51
You know Auriga does have current and end time on the OSD already...
Yes when you press the OSD button then pause.
But if you only press pause, it's not there.
pletopia
2009-06-20, 13:57
anyone know what i would need to replace in Auriga to get my progress bar, paused bar to look like this instead of the default auriga way ?
pletopia
2009-06-21, 11:19
ohh .. so happy now :)
http://img36.imageshack.us/img36/3544/picture1fyn.th.jpg (http://img36.imageshack.us/i/picture1fyn.jpg/)
to get it to look like that:
follow instructions here: http://xbmc.org/forum/showpost.php?p=306723&postcount=11 EXCEPT in the Customisation.xml .. you will notice that there is already a id="406" and "407" with newer builds of aurgia .. just change the id to 408 .. place it after 407 in the xml file and your golden :)
PLUS
in both DialogSeekBar.xml & VideoOSD.xml
find
<label>$INFO[VideoPlayer.Time] ($INFO[System.Time])</label>
replace with
<label>$INFO[VideoPlayer.Time]</label>
&
<label>$INFO[VideoPlayer.Duration] ($INFO[Player.FinishTime])</label>
replace with
<label>$INFO[VideoPlayer.Duration]</label>