import processing.video.*;
import codeanticode.gsvideo.*;
Capture myCapture;
GSCapture cam;
void setup()
{
size(1024, 768);
myCapture = new Capture(this, width, height, 30);///with p5 videolibrary
//cam = new GSCapture(this, width, height, 30);// with GS
myCapture.start();
///cam.start();
}
void draw() {
if(myCapture.available()){
myCapture.read();
image(myCapture, 0, 0);////works
}
}
// if(cam.available()){
// cam.read();
// image(myCapture, 0, 0);//does nt work ::: resolution (1024/768) not supported by this device; the same with ///1.5.1:: works..........accepting without problem 1024/768!!!----Puzzling!
// }
// }
void mousePressed(){
myCapture.stop();
//cam.stop();
myCapture.dispose();
//cam.dispose()
background(0);
}
import codeanticode.gsvideo.*;
Capture myCapture;
GSCapture cam;
void setup()
{
size(1024, 768);
myCapture = new Capture(this, width, height, 30);///with p5 videolibrary
//cam = new GSCapture(this, width, height, 30);// with GS
myCapture.start();
///cam.start();
}
void draw() {
if(myCapture.available()){
myCapture.read();
image(myCapture, 0, 0);////works
}
}
// if(cam.available()){
// cam.read();
// image(myCapture, 0, 0);//does nt work ::: resolution (1024/768) not supported by this device; the same with ///1.5.1:: works..........accepting without problem 1024/768!!!----Puzzling!
// }
// }
void mousePressed(){
myCapture.stop();
//cam.stop();
myCapture.dispose();
//cam.dispose()
background(0);
}