Connexion rapide:  

Forum: General Discussion

Sujet How to configure video transitions in VDJscript...

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

Depending on the language of my show (I work in tourism), I want either the random video transitions on, or I want them off and the video transition set to fade... How would I go about putting that in my skin?

This doesn't seem to work properly:

<oninit action="var_equal '$LANGUAGE' 3 ? setting 'videoRandomTransition 'off' & setting videoTransition 'Fade' : setting 'videoRandomTransition 'on'"/>
 

Posté Mon 26 Sep 16 @ 11:19 am
I just realized that you cannot put conditions in oninit. So I placed the commands in the langauge selection buttons:

<panel name="LANGUAGE 2" visible="var '$LANGUAGE' 2 & videoRandomTransition 'on'">

<panel name="LANGUAGE 3" visible="var '$LANGUAGE' 3 & 'videoRandomTransition 'off' & videoTransition 'None'">

Still doesn't work...
 

Posté Mon 26 Sep 16 @ 11:34 am
<panel name="LANGUAGE 3" visible="var '$LANGUAGE' 3 & setting 'videoRandomTransition' off & video_transition 'None'">

This should turn random video transitions off and also video transitions itself off...

<panel name="LANGUAGE 3" visible="var '$LANGUAGE' 3 & setting 'videoRandomTransition' off & video_transition 'Fade'">

This should fade, but also doesn't work...

The oinint makes sure the standard setting is "on" for random video transitions: <oninit action="setting 'videoRandomTransition' on & setting 'videoTransition' Spin"/>

Anyone any idea what I'm doing wrong?
 

Posté Mon 26 Sep 16 @ 11:48 am
I also tried including the code in the actual language selector buttons (with the "action" verb):

<button action="cycle '$LANGUAGE' 4 & var '$LANGUAGE' 3 ? setting 'videoRandomTransition' off & video_transition 'Fade' : setting 'videoRandomTransition' on">

Nothing. No effect at all.
 

Posté Mon 26 Sep 16 @ 12:06 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
var_equal '$LANGUAGE' 3 ? setting 'videoRandomTransition' off & video_transition_select 'Fade' : setting 'videoRandomTransition' on
 

Posté Mon 26 Sep 16 @ 12:41 pm
Thank you for your input, Babis. Everything is working fine now :)
 

Posté Mon 26 Sep 16 @ 1:31 pm


(Les anciens sujets et forums sont automatiquement fermés)