MusicPlayer.Time in seconds
#1
Is there some simple/clever way to get the MusicPlayer.Time and RemainingTime in seconds? As in Time(mm) * Time(ss).

I'm trying to get an element to be visible when Time > 5s and RemainingTime > 5s.
Reply
#2
Code:
<visible>[!StringCompare(MusicPlayer.Time(hh),00) | !StringCompare(MusicPlayer.Time(mm),00) | IntegerGreaterThan(MusicPlayer.Time(ss),5)] + [!StringCompare(MusicPlayer.TimeRemaining(hh),00) | !StringCompare(MusicPlayer.TimeRemaining(mm),00) | IntegerGreaterThan(MusicPlayer.TimeRemaining(ss),5)]</visible>

i wonder if anyone can come up with a simpler condition ;-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Much appreciated, I was nearly there but couldn't quite get it all to fit together. I think this shows that there really ought to be a couple more convenience functions introduced Smile
Reply

Logout Mark Read Team Forum Stats Members Help
MusicPlayer.Time in seconds0