Is the 'IPCapture' library not usable? (not Android mode?)

I’ve got it! Instead of using the resize which is inherated, you just use:

image(cam,0,0,displayWidth,displayHeight);

instead of:

image(cam, 0, 0);

This turned out to be pretty easy, thank you all guys! :slight_smile:

1 Like

347/5000

Hello people, how are you !?

Is it possible for someone to post the complete code for me to use in IPcapture on Android ???
I’m having the same problems presented here, but even with the correction of the library and with the correction of the resize in addition to other attempts, but still I was not successful.
If any good soul can help, I would be very grateful.

Follows an attempt
//============================================//
import ipcapture.*;
IPCapture cam;

void settings() {
size(1000,500, P2D);// is not good
//size(640, 480, P2D); // is good
}

void setup() {
cam = new IPCapture(this, “http://192.168.0.12:8080/video”, “”, “”); //android_IPWebcam
//cam = new IPCapture(this, “http://192.168.0.10:81/stream”, “”, “”); //esp32Cam

cam.start();

}

void draw() {
cam.read();

beginShape();
texture(cam);
vertex(0, 0, 0, 0);
vertex(cam.width, 0, cam.width, 0);
vertex(cam.width, cam.height, cam.width, cam.height);
vertex(0, cam.height, 0, cam.height);
endShape();
}

void mousePressed() {

if (cam.isAlive()) {
cam.stop();
println(“stop”);
} else {
cam.start();
println(“start”);
}
}
//============================================//

Android apk file.
It is made with the above source.