Kodi Community Forum
New Function: Player.CurrentPosition_in_%() - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: New Function: Player.CurrentPosition_in_%() (/showthread.php?tid=31101)



New Function: Player.CurrentPosition_in_%() - realjobe - 2008-02-08

Dear Board.
I asked from you to implement Player.FinishTime(), and you did. I have utilized that in Skin for quite some time now (in VideoFullScreen.xml).

Can there be also function to return current playing time in %.
We have System.Time() and we have Player.FinishTime()?


PageSkip +- navigation on Dialogs. - realjobe - 2008-02-08

Dear Board.

Can there be <PageSkip Forward> maped to FastForwad' button
and <PageSkip Backward> maped to 'Rewind' buttons on IR remote?

All the System etc dialogs that have long file/items listings should have pageSkip, so that the hopping on the list could be a lot of faster.

Example, PlugIN SurfTheChannel under 'TV shows' has over 670 items on the list. Scrolling to the middle of if take DownArrow_press' a bit of time. Page skip could hop one page (some 30 items visible on one "page") with one keyPress.


- spiff - 2008-02-08

player.progress

will conflict with player controls


- realjobe - 2008-02-08

PageSkip can be maped when player is off and common dialog is on. during media play, regular FF,Rew are mapd. function modes.


- spiff - 2008-02-08

there's no such thing as conditional key mappings.

and in any case i would strongly oppose such a change - there's nothing quite as bad as a user interface where one button can do several things in one place


- realjobe - 2008-02-08

well, at the moment those keys are not doing anything when any media player isn't runnig.

Sure there can be check wheater there is a item dialog created or not and then deliever the KeyEvent?

donno.


- realjobe - 2008-02-08

spiff Wrote:player.progress

What does Player.Progress return?
Player.FinishTime returns text.


- spiff - 2008-02-08

sure it can be. but i just told you why i think it's a bad idea.

hmm, player.progress is an int, dunno if those can be used in info strings


- realjobe - 2008-02-08

spiff Wrote:hmm, player.progress is an int, dunno if those can be used in info strings


..and thats why I asked for the new function to return "40%" meaning a textual (string) output, same fashion as that Player.FinishTime.

Smile


- realjobe - 2008-02-08

realjobe Wrote:..and thats why I asked for the new function to return "40%" meaning a textual (string) output, same fashion as that Player.FinishTime.

Smile
Player.Progress = <control type="progress" id="1">
Player.FinishTime = control type="label" id="1">


Smile


- Jezz_X - 2008-02-08

player.progress returns a label in % if you use it in a label at least pretty sure it does


- realjobe - 2008-02-08

<control type="label" id="1">
<description>The Current progress</description>
<width>100</width>
<posx>680</posx>
<posy>30</posy>
<info>Player.Progress</info>
<align>right</align>
<textcolor>green</textcolor>
<font>special13</font>
</control>

did not work. VideoFullScreen.xml file.