/** * Loop. * * Move the cursor across the screen to draw. * Shows how to load and play a QuickTime movie file. */ import processing.video.*; Movie myMovie; void setup() { size(1280, 720, P2D); background(0); // Load and play the video in a loop myMovie = new Movie(this, "/Volumes/Reservoir/Assets/Video/twomeymovie/Untitled10.mov");//station.mov"); myMovie.loop(); } //void movieEvent(Movie myMovie) { // myMovie.read(); //} void draw() { if(myMovie.available()) { myMovie.read(); } image(myMovie, 0, 0); } void mousePressed() { myMovie.jump(float(mouseX)/float(width)*myMovie.duration()); } // void draw() { // // //tint(255, 20); // image(myMovie, width/2, height/2);//mouseX-myMovie.width/2, mouseY-myMovie.height/2); //}