Hi, all! Is it possible to link actions and events to arbitrary time video playback? And for audio playback too.

Actions and events links to arbitrary time video playback
-
-
Hi,
not automatically, but you could check the "time" variable (this is the current time number of the video in seconds) of the videoplayer plugin (e.g. with the looping delayedcalls) and then call other actions,
e.g.
Code<action name="checkvideotime"> trace('video time=',plugin[video].time); if(plugin[video].time GT 5, action(...)); ... delayedcall(1.0, checkvideotime() ); </action>
best regards,
Klaus -
Oooo! Great loop! Thx, Klaus!
-
Hi klaus is it possible to to have two conditions : A and B, or is it possible to write your code like this
Code<action name="checkvideotime"> trace('video time=',plugin[video].time); if(2 GT plugin[video].time GT 5, action(...)); ... delayedcall(1.0, checkvideotime() ); </action>
with 2<time<
or is it possible to break only the delayedcall, or the action without breakall() or stop all()
my problem is to do appear a video hotspot at different time with a tween alpha, i need to check different times with opposites actions.
Thank you for your answer
Code
Display More<action name="playvideobienvenu"> set(hotspot[video6305].visible,true); tween(hotspot[video6305].alpha,1,2); hotspot[video6305].play();hotspot[video6305].seek(6); action(displayvideobienvenu); tween(hotspot[video6305].volume,1,3); tween(sound[s1].volume,0.05,2,easeInOutCubic); </action> <action name="displayvideobienvenu"> if(hotspot[video6305].time GT 156,action(displayallvideos)); if(hotspot[video6305].time GT 162, breakall()); delayedcall(1.0, displayvideobienvenu()); </action> <action name="playvideoactivite"> set(hotspot[video6305].visible,true); tween(hotspot[video6305].alpha,1,2); hotspot[video6305].play();hotspot[video6305].seek(162); action(displayvideoactivite); tween(hotspot[video6305].volume,1,3); tween(sound[s1].volume,0.05,2,easeInOutCubic); </action> <action name="displayvideoactivite"> if(hotspot[video6305].time GT 305,if(hotspot[video6305].time LT 308, action(displayallvideos))); delayedcall(1.0, displayvideoactivite() ); </action>
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!