You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Friday, August 29th 2014, 6:17pm

Tracing Video time


I want my videoplayer to be able to seek through points in the video based on playback buttons(this part was easy), but I also want the video to know to pause itself at certain times based off those button pressed as well

i.e. onclick=playsectionB()...action name="playsectionB"... seek(video to be start time)... if video gt time is = 2,pause())

something along those lines. I've checked up on tracing the video's time parameter but I have yet to see a real example on how to use it. Currently I have this action:

<action name="checkvideotime">
trace('video time=',plugin[video].time);
if(plugin[video].time GT 1.4, action(plugin[video].pause());
delayedcall(1.0, checkvideotime() );

but I have nothing to call it every frame so nothing happens. Kinda lost on this one. Thanks ahead of time