Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

scrolling in a movie through mouseX

$
0
0

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);
}

Viewing all articles
Browse latest Browse all 2896

Trending Articles