Show videos with processing
in
Core Library Questions
•
7 months ago
Hi, im new programming with processing and i have one doubt. I have to show 3 videos, first one video, once finish first video show the second video and third video when second video finish.
My code is:
import processing.video.*;
Movie myMovie;
//siempre en ejecucion
void draw() {
image(myMovie, 0, 0);
}
void movieEvent(Movie m) {
m.read();
}
void setup() {
size(500, 500);
myMovie = new Movie(this, "video1.mov");
myMovie.play();
myMovie = new Movie(this, "video4.mov");
myMovie.play();
myMovie = new Movie(this, "video3.mov");
myMovie.play();
}
------------------------------------------------------------O------------------------------------------------------------
But this code displays the three videos at same time in same window...
can help me please?
thanks!
1