Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Video playback + display image when finished

$
0
0
Cool, it seems that available isn't the right event.

We also have two other methods on the movie class that might be of use:

time()

Returns location of playback head in units of seconds
duration()Returns length of movie in seconds
so hopefully we can do this

  1. if (myMovie.time() == myMovie.duration()) { //movie must be finished
  2. image(fragment,0,0);
  3. }


Viewing all articles
Browse latest Browse all 1768

Trending Articles