Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
VideoPlayer.Duration is probably not compatible since its set in hh:mm format instead of a straight number but thats pure guess by me
Posts: 26,215
Joined: Oct 2003
Reputation:
187
You could try VideoPlayer.Duration(MM) perhaps - no idea if it'll work or not.
Posts: 26
Joined: Jan 2010
Reputation:
0
Any update on how to achieve this?
Posts: 26
Joined: Jan 2010
Reputation:
0
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!
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
Videoplayer.Duration probably returns a string so integer comparison won't work.