We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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);
}
Answers
https://Processing.org/reference/libraries/video/Movie_jump_.html
https://Processing.org/reference/libraries/video/Movie_duration_.html
https://Processing.org/reference/mouseX.html
https://Processing.org/reference/map_.html
ah thank you! i also have fixed it with keyPressed. it looks charming too.