hello, i'm sorry this is a very basic question, but i'm all new in processing and trying to run a video in random jumping mode.
but it seams that i didn't knew how to install properly the video library...
please, what i have done wrong?
here is my code:
import processing.video.*;
Movie movie;
float[] cortes={
5, 10.1, 20.7, 24.5, 32.5, 37.6, 42.8, 53.2, 55.7, 64.3, 72.3, 78,9
};
int trechoAtual;
int quantTrechos = 11;
void setup() {
size(1020, 882);
background(0);
movie = new Movie (this, "komodenu.mov");
movie.loop();
}
void movieEvent(Movie m) {
m.read();
}
void draw() {
if (movie.time()>cortes[trechoAtual+1]) {
trechoAtual = int(random(quantTrechos-0.1));
movie.jump(cortes[trechoAtual]);
}
image(movie, 0, 0, width, height);
}
thanks