Kodi Community Forum
[Request] New Function for UI. - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: [Request] New Function for UI. (/showthread.php?tid=49859)



[Request] New Function for UI. - realjobe - 2009-04-28

Dear Board.
It has been quite some time when I requested a small function that outputted the movie's (that was playing) ending time ($INFO[Player.FinishTime])

I'd like to request a new function that will return the Remaining time in hh:mmConfuseds eg. "-1h 32min 12sec" or "-34min 13sec"

Let the function be called upon "$INFO[Player.RemainingTime]".

This function can be called from skins "DialogFullScreenInfo.xml" like tie one I requested earlier.
Code:
<control type="label" id="1">
<description>The Time when the Video ends</description>
<posx>1250</posx>
<posy>30</posy>
<width>200</width>
<height>25</height>
<textcolor>green</textcolor>
<label>$INFO[Player.FinishTime]</label>
<align>right</align>
<aligny>center</aligny>
<font>font13</font>
</control>



- Jezz_X - 2009-04-28

Allready got them http://wiki.xbmc.org/?title=InfoLabels
MusicPlayer.TimeRemaining Current remaining time in song
VideoPlayer.TimeRemaining Current remaining time in movie


- realjobe - 2009-04-28

Jezz_X Wrote:Allready got them http://wiki.xbmc.org/?title=InfoLabels
MusicPlayer.TimeRemaining Current remaining time in song
VideoPlayer.TimeRemaining Current remaining time in movie

EXCELENT!

Skin : PM3.HD in720p mode.
file: DialogFullScreenInfo.xml
Add the controlls below 4 times. 1st one is there already.

Code:
<control type="label" id="1">
<description>System Time Label</description>
<posx>1250</posx>
<posy>10</posy>
<width>200</width>
<height>25</height>
<textcolor>green</textcolor>
<label>$INFO[System.Time]</label>
<align>right</align>
<aligny>center</aligny>
<font>font13</font>
</control>

<control type="label" id="1">
<description>The Time when the Video ends</description>
<posx>1250</posx>
<posy>30</posy>
<width>200</width>
<height>25</height>
<textcolor>green</textcolor>
<label>$INFO[Player.FinishTime]</label>
<align>right</align>
<aligny>center</aligny>
<font>font13</font>
</control>

<control type="label" id="1">
<description>The Time TimeRemaining</description>
<posx>1250</posx>
<posy>50</posy>
<width>200</width>
<height>25</height>
<textcolor>green</textcolor>
<label>$INFO[Player.TimeRemaining]</label>
<align>right</align>
<aligny>center</aligny>
<font>font13</font>
</control>