// Uses movie file from Processing example Libraries | Video (Movie) | Loop import processing.video.*; // video library Movie mov; void setup() { size(320,240); smooth(); textFont(loadFont("Helvetica-14.vlw")); // load and start the movie mov = new Movie(this, "movie.mov"); mov.play(); } // this is called when a new frame is available // albeit this does nothing, it appears to help the program running well void movieEvent(Movie m) { } void draw() { // jump if mouse pressed if(mousePressed) { mov.jump(map(mouseX,0,width,0,mov.duration())); } if(mov.available()) { mov.read(); image(mov,0,0,320,240); // now treat the movie frame like an image text(mov.time(),0,height); if(mousePressed) mov.stop(); // stop right here if mousePressed } } // START NO NOTES // code used to capture screenshots void keyReleased() { if(key == '`' && !online) save("sketch.png"); }