import processing.video.*;
Capture myCapture;
import ddf.minim.*;
AudioPlayer player;
minim minim;
Void setup(){
size(500,600);
String s ="Logitech QuickCam Messenger-VDM;
myCapture = new Capture (this,s,width,heiight,30);
minim=new Minim (this);
player=minim.loadFile("incubus - a certain shade of green.mp3",2048);
player.play();
}
void draw (){
void draw() {
// myCapture.available() returns true
// when there is a new frame
if(myCapture.available()) {
myCapture.read();
}
image(myCapture, 0, 0);
}
No hay comentarios:
Publicar un comentario