I've tried to make a sketch that plays back movies using the following code but, but it causes the sketch to crash with no debugging info. I'm assuming this is something I'm doing wrong - but it seems like there should be an error...
`public class MovieMapper extends AbstractSketch {
public MovieMapper(final PApplet parent, final int width, final int height) {
super(parent, width, height);
}
Movie movie;
@Override
public void draw() {
graphics.image(movie, 0, 0, graphics.width, graphics.height);
}
@Override
public void keyEvent(KeyEvent event) {
}
@Override
public void mouseEvent(MouseEvent event) {
}
public void movieEvent(Movie m) {
m.read();
}
@Override
public void setup() {
// Load and play the video in a loop
movie = new Movie(parent, "transit.mov");
movie.loop();
}
}`
I've tried to make a sketch that plays back movies using the following code but, but it causes the sketch to crash with no debugging info. I'm assuming this is something I'm doing wrong - but it seems like there should be an error...
`public class MovieMapper extends AbstractSketch {
}`