I have OS X (latest update), processing 1.0.3, and the video card that comes with the first generation mac mini.
Quote:The workaround for this bug is to place this code inside setup(), and
*before* size():
try {
quicktime.QTSession.open();
} catch (quicktime.QTException qte) {
qte.printStackTrace();
}
In all other situations, you should never place code before the size()
method inside setup(), but desperate times call for desperate measures.
I tried that, this is how the code looks like:
Code:import processing.opengl.*;
import processing.video.*;
Movie myMovie;
void setup() {
{
quicktime.QTSession.open();
}
catch (quicktime.QTException qte) {
qte.printStackTrace();
}
size(640, 480, OPENGL);
background(0);
// Load and play the video in a loop
myMovie = new Movie(this, "station.mov");
myMovie.loop();
}
void movieEvent(Movie myMovie) {
myMovie.read();
}
void draw() {
set(160, 100, myMovie);
}
but I get this error in the console:
expecting RCURLY, found 'catch'