Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

How to use video time trigger with edgehero.js?

$
0
0

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?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>