Problems playing QuickTime Movies
in
Core Library Questions
•
2 years ago
Playback of QuickTime .mov files is very erratic on my system Macbook Pro OS X 10.6.5. Sometimes the movie plays perfectly sometimes it just quits and I get an error about a pointer or other errors. Here's my code:
import processing.video.*;
Movie myMovie;
void setup() {
size(640, 480, P2D);
myMovie = new Movie(this, "drb02.mov");
myMovie.loop();
}
// Called every time a new frame is available to read
void movieEvent(Movie myMovie) {
myMovie.read();
}
void draw() {
image(myMovie, 160, 120, 320, 240);
}
Is there something wrong with my code?
Thanks,
George
import processing.video.*;
Movie myMovie;
void setup() {
size(640, 480, P2D);
myMovie = new Movie(this, "drb02.mov");
myMovie.loop();
}
// Called every time a new frame is available to read
void movieEvent(Movie myMovie) {
myMovie.read();
}
void draw() {
image(myMovie, 160, 120, 320, 240);
}
Is there something wrong with my code?
Thanks,
George
1