Weird problem (coordinates out of bounds)
in
Core Library Questions
•
2 years ago
I just took the movie sample code from the Processing website, and when I want to run it using my own movie (for which I also changed the height and width of the canvas, it gives me the error: ArrayIndexOutOfBoundsException: Coordinate out of bounds! What could possibly be wrong?
- import processing.video.*;
- Movie theMov;
- void setup() {
- size(640, 380);
- theMov = new Movie(this, "bird.mov");
- theMov.play();
- /* only use 1 of the following options */
- //theMov.play(); //plays the movie once
- //theMov.loop(); //plays the movie over and over
- }
- void draw() {
- image(theMov, 0, 0);
- }
- void movieEvent(Movie m) {
- m.read();
- }
2