Video

Learned how to get video to play in processing.. messing around.

 

 


 

 

 

 

 

 

import processing.video.*;
Movie mov;

void setup()
{ size(480,250,P2D);
frameRate(1);
mov = new Movie(this, "capnjazz.mp4");
mov.loop();
mov.play();
}

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

void draw() {
image(mov,0,0);

PFont font;
font = loadFont("HelveticaNeueLT-ThinItalic-20.vlw");
textFont(font);
fill(255);
stroke(255);
String s = "fire is motion. work is repetition.";
text(s, 60, 125,400,200);

if(mousePressed) {
mov.pause();
} else {
mov.play();
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *

* Copy This Password *

* Type Or Paste Password Here *

3 Spam Comments Blocked so far by Spam Free Wordpress