video help!
in
Core Library Questions
•
2 years ago
I am just trying to get a simple video to run and i have several questions,
I used the code from the processing website to start off with which is
import processing.video.*;
Movie myMovie;
void setup() {
size(500, 500);
frameRate(30);
myMovie = new Movie(this, "untitled.mov");
myMovie.loop();
}
void draw() {
if(myMovie.available()) {
myMovie.read();
}
image(myMovie,100,100,100,100);
}
Movie myMovie;
void setup() {
size(500, 500);
frameRate(30);
myMovie = new Movie(this, "untitled.mov");
myMovie.loop();
}
void draw() {
if(myMovie.available()) {
myMovie.read();
}
image(myMovie,100,100,100,100);
}
now i keep getting the error ArrayIndexOutofBoundsException: Coordinate out of Bounds
i changed the actual size of the video i attached to 96 x96
the sketch window is 500 and im asking it to play at (100,100)
any ideas why I'm getting this message?
Thank you very much!!
1