Kodi Community Forum

Full Version: need your help to understand something
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here is the code for video time the seek bar
I would like to add a multi info (of finish time + time remaining)
Change is good, one time, but to next change, Time Remaining, it no longer works
, it s stay locked . Why?

PHP Code:
<control type="group">
                <
left>20</left>
                <
top>6</top>
                <
control type="label">
                    <
left>0</left>
                    <
width>200</width>
                    <
label>$VAR[player_Time]</label>
                    <
textcolor>Color3</textcolor>
                    <include>
detail_Sub</include>
                </
control>
                <
control type="fadelabel">
                    <
right>20</right>
                    <
width>200</width>
                    <
visible>true</visible>
                    <
scroll>false</scroll>
                    <
scrollout>false</scrollout>
                    <
pauseatend>5123</pauseatend>
                    <
label>$VAR[player_Duration]</label>
                    <
label>$VAR[player:TimeRemaining]</label>                                        
                    <
align>right</align>                    
                    <
textcolor>Color3</textcolor>
                    <include>
detail_Sub</include>
                </
control>
            </
control

thx Smile
Try to add:

<loop>yes</loop>
This still does not work Sad
Thank you for your help
perhaps xbmc does not like ":" in var names.

EDIT: sorry, i meant Kodi Wink
I just realized that i should not put (hh: mm: ss) XBMC does not like when it is mobile. works with (hh: mm)
but it is not interesting then / how to work (hh: mm: ss) ?
nobody can help me?

Is this something that XBMC can not work?
You should post your variable value, else i doubt someone can help Smile
PHP Code:
<variable name="player:Duration">
        <
value condition="!VideoPlayer.Content(LiveTV)">$INFO[Player.Duration(hh:mm:ss)]</value>
        <
value>$INFO[Player.FinishTime(hh:mm:ss)]</value>
    </
variable>
    <
variable name="player:TimeRemaining">
        <
value condition="!VideoPlayer.Content(LiveTV)">$INFO[Player.TimeRemaining(hh:mm:ss]]</value>    
        <
value>$INFO[Player.StartTime(hh:mm:22)]</value>
    </
variable
Drop
Code:
(hh:mm:ss)

If you check the wiki you'll see it's not used for anything but System.Time.

http://wiki.xbmc.org/index.php?title=InfoLabels
At the moment I don't understand how. but I'll think about it. Thank you for your help
I created an alternative.
What do you don't understand? What Hitcher said, just remove hh:mmConfuseds in your variable because you don't need it.
No, I understand that. but I tried it but it changes nothing. I would create a fadelabel, but that does not work! I can only succeed if I understand what I'm doing. read and do not understand, will not help. He gave me a good indication, but when I look at the wiki, I do not know where to look to achieve what I want.
It might be the use of variables in a fadelabel - if so just two fade labels with visible conditions instead.
ok, so I made several tries different;
If I do that, the label2 (remaining time) does not change, when visible, because it move. And while the film is not finished, it is no work for a label 1 (duration)
I did everything you said. Nothing work. If I add (as remaining time: hh: mm) that work well, but not with hh: mm: ss) and if I delete the information = hh: mm: ss as you said, there is no work. Changes once and do not come back early with label1.
sorry for my bad english

Edit : Forgot to say: When the video is paused, it work well, but not with play

watch this video


https://www.dropbox.com/s/wx2xbmni75j7dkz/XBMC.mpg?dl=0