Unable to call when video at a certain point.

  • Hi,

    I'm having difficulty trying to call and action on a video to pause it at a certain point (eg. 10 secs into the video).

    The code I have in the video plugin is

    Code
    onvideoplay="set(time_reached,false); asyncloop(time_reached == false, if(plugin[video].time GT 10, set(time_reached,true); pause_video(););"

    and the pause video action is

    Code
    <action name="pause_video">     
            plugin[video].pause();
            </action>

    Is there anything missing here?

    I've tried other actions to call as well if the video time reaches 10 seconds and they also didn't trigger, so assume something to do with .time on the video plugin is not being read with my current code?

    Thanks for any help

    Red

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!