detect video end

  1. 8 years ago

    how to detect a video end and add a navigation action like go to page?

  2. sorry to bother.. to interact with video player should i implement a smart object?

  3. Giancarlo N

    27 Jan 2016 Administrator

    Hello,
    currently there are no such event on video, they are on our to-do list, but still no ETA for them sorry.
    Of course you could use a smartobject with your own javascript to listen for video onend event.

  4. Hello, thank you for your reply.
    I figured it out, for anyone interested here follows my own javascript:

    <script type="text/javascript"><![CDATA[
    $(document).ready(function(){
    $("#obj729").on('ended',function(){
    setTimeout( goToNextPage, 4000 ); // after 4 seconds
    });
    });
    ]]></script>

    where #obj729 is the videoobject id.

 

or Sign Up to reply!