browse and play video file?
in
Programming Questions
•
2 years ago
Hey I was wondering if anyone would be able to help me modify the code below so you can browse for a video file and then play instead of typing a root. Thanks
//heres the standard code.
//heres the standard code.
import processing.video.*;
MovieMaker mm; // Declare MovieMaker object
void setup() {
size(320, 240);
// Create MovieMaker object with size, filename,
// compression codec and quality, framerate
mm = new MovieMaker(this, width, height, "drawing.mov",
30, MovieMaker.H263, MovieMaker.HIGH);
background(204);
}
void draw() {
ellipse(mouseX, mouseY, 20, 20);
mm.addFrame(); // Add window's pixels to movie
}
void keyPressed() {
if (key == ' ') {
mm.finish(); // Finish the movie if space bar is pressed!
}
}
1