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

How to pause imported film for a few seconds

$
0
0

How if I may can I pause an imported film in Edge Animate?

Using this command:

 

// insert code to be run when the composition is fully loaded here

setTimeout(function() {

  //Pausing the timeline after 2 secs

  sym.$("shorter").html("Pausing after 2 secs");

   sym.stop();   

}, 2000);

setTimeout(function() {

  sym.$("shorter").html("Resume playing after 4 secs");

   sym.play();

}, 4000);

 

I can pause objects built in Edge with this command, but not an imported film... Why?

What am I doing wrong?

 

 

 

If I just want to pause the film I use:

But I there is no pause time given so it just is paused indefinitely.

 

// Pause a video track

sym.$("shorter")[0].pause();


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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