2 Replies Latest reply on May 21, 2015 8:53 AM by TomGreen

    How to use video time trigger with edgehero.js?

    M123456

      I am trying to use time triggers with edgehero.js but somehow it's not working.

       

      The following code works without edgehero.js:

       

      var vid = sym.$("myVideo")[0];

       

      vid.addEventListener("timeupdate", function() { // function updates if video plays

       

          if( (vid.currentTime>1.0) && (vid.currentTime<4.0)) { // start event if between 1.0 and 4.0 seconds

                // do something

           } else {

                // do something else

           }

       

      });

       

      But it does not work in combination with edgehero.js.

      Does anybody have a solution?