IntegerGreaterThan question
#1
I am trying to move the info in videooverlay.xml when the total running time of a video is an hour or longer. I tried this:

PHP Code:
<animation effect="slide" start="0" end="-200" time="0" Condition="IntegerGreaterThan(VideoPlayer.Duration,59)">Conditional</animation

No dice though. Am I doing something wrong, or is it just not possible?
Would it be hard to make this possible?
Reply
#2
VideoPlayer.Duration is probably not compatible since its set in hh:mm format instead of a straight number but thats pure guess by me
Reply
#3
You could try VideoPlayer.Duration(MM) perhaps - no idea if it'll work or not.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
Unfortunately no it didn't work. But perhaps it will when this gets implemented?

thanks,
Jeroen
Reply
#5
Any update on how to achieve this?
Reply
#6
Thought I'd add my question from my other post since it seemed kinda relevant to me.

----------------------------------
I'm trying to show a video only if it's a trailer. So I figured if the duration of a video is more than a certain time (since trailers usually are less than 3 minutes)..it won't show the videowindow.

I'm having trouble with the syntax...what would be the correct way of specifyign this. I was reading the wiki and found this:


IntegerGreaterThan(info,number)
Returns true if the value of the infolabel is greater than the supplied number.
Example:
IntegerGreaterThan(ListItem.Year,2000)



So In my case what would it be?

I tried:

IntegerGreaterThan(Videoplayer.Duration,3) and it doesn't work. I also tried all sorts of varitations.

IntegerGreaterThan(Videoplayer.Duration,180000)
IntegerGreaterThan(Videoplayer.Duration,00:03:00)
which dont seem right at all.

Please help...thanks!
Reply
#7
Videoplayer.Duration probably returns a string so integer comparison won't work.
Image
Reply
#8
OK:
IntegerGreaterThan can accept time (f.e. Player.Time, Player.TimeRemaining) - it will then convert time to seconds and You defenitely can compare it. However - as always : it assumess formats like: mmConfuseds or hh:mmConfuseds, so if something will be returned as hh:mm - it won't calculate well.
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply

Logout Mark Read Team Forum Stats Members Help
IntegerGreaterThan question0