2016-02-05, 17:30
Hi Guys,
I'm trying to play a movie trailer automatically when a movie information is displayed (DialogVideoInfo.xml). The code below works well, however, I'd like to include a condition to this to only play if a trailer is available.
As I have TVTunes addon enabled, the code above stops playing any theme tune playing in the background when loading a TV episode's information. I'd like to know if it's possible to include a condition without using a variable include. Is this possible at all?
Would appreciate any help. Thanks!
I'm trying to play a movie trailer automatically when a movie information is displayed (DialogVideoInfo.xml). The code below works well, however, I'd like to include a condition to this to only play if a trailer is available.
PHP Code:
<onload>AlarmClock(PlayTrailer,PlayMedia($INFO[ListItem.Trailer],false,1),00:02,silent)</onload>
As I have TVTunes addon enabled, the code above stops playing any theme tune playing in the background when loading a TV episode's information. I'd like to know if it's possible to include a condition without using a variable include. Is this possible at all?
Would appreciate any help. Thanks!