[MOD] End Time Modification
#1
***UPDATE*** For a much better implementation of this idea see stendec's post here:
http://forum.xbmc.org/showpost.php?p=306...stcount=11


~

Originally found here: http://forum.xbmc.org/showpost.php?p=279...stcount=47
Edited to fit Aeon Stark.

Replace (at the bottom of DialogSeekBar.xml) :

Code:
</controls>
</window>

With this.

Code:
<!-- 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.
Reply
#2
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.
Reply
#3
It just gives you the actual time the video will be over for those on a tight schedule. Smile
Works out great for me when I'm trying to finish an episode of SG1 before work.
Reply
#4
Image

To alleviate any confusion. Smile
Reply
#5
nice paint work Big Grin
Reply
#6
Nice work just what stark needed. thanks
XBMC Frodo 12 - Windows 7 - Asrock Ion 330HT - Aeon Nox
Reply
#7
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?
Reply
#8
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
Reply
#9
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.
Reply
#10
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
Reply
#11
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...
Image

Installation then...

Open 720p/DialogSeekBar.xml

At the end of the document, Find:
Code:
</control>

  </controls>
</window>

Replace With:
Code:
<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:
Code:
</control>
</controls>
</window>

Replace With:
Code:
<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:
Code:
<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:
Code:
<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
Reply
#12
Thanks!! ;-D
Reply
#13
stendec Wrote: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?
Reply
#14
Hitcher Wrote: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.
Reply
#15
No problem. Looks very nice by the way.
Reply

Logout Mark Read Team Forum Stats Members Help
[MOD] End Time Modification0