Hi everyone, a newbie question here. I´m trying to select video files that will play in a random sequence. Every time I replay the sketch I see a new video, but does anyone know how to get them to play in sequence without refreshing the sketch? I´m probably missing something obvious here, grateful for any help!
import processing.video.*;
String[]vid = {"action1.mp4", "action2.mp4", "action3.mp4", "action4.mp4", "action5.mp4", "action6.mp4"};
Movie movie;
void setup() {
size(480, 270);
background (255);
frameRate(30);
movie = new Movie(this, vid[int(random(1, 6))]);
movie.loop();
}
void movieEvent(Movie m) {
m.read();
}
void draw() {
image(movie, 0, 0 );
}