scrolling in a movie through mouseX

edited November 2015 in Library Questions

Hi people,

im very new to this and im quite sure it should be very easy to do this but i don't know how. i want to load a video in processing an control the displaying of the frames of the video through the mouseX position.

that is my code:

import processing.video.*;
Movie myMovie;

void setup() {
  frameRate(30);
  size(1244, 700);
  myMovie = new Movie(this, "Komp 1.mov");
  myMovie.play();    
}

void movieEvent(Movie myMovie) {
  myMovie.read();
}

void draw() {
  image(myMovie, 0,0);
}
Sign In or Register to comment.