Hi people,
Im with a problem, i want put a video as background so i used the following code :
import processing.video.*;
Movie myMovie;
void setup(){
size(600,1000);
myMovie = new Movie(this, "video.mov");
myMovie.loop();
}
void draw(){
tint(500, 300);
image(myMovie, mouseX, mouseY);
}
void movieEvent(Movie m) {
m.read();
}
Dont give error, however sometimes appears only the audio of video, other dont appear nothing.. and other times appears a part of video so much lagged and pixelized.. can u help me?
I noticed that with mouseX, mouseY coordinates , video its attached with mouse, so for put that as background i have to put the size like window size right?