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

**URL:** <https://discourse.processing.org/t/is-the-ipcapture-library-not-usable-not-android-mode/11315>\
**Category:** Processing for Android\
**Created:** [May 16, 2019, 9:35pm UTC](https://discourse.processing.org/t/is-the-ipcapture-library-not-usable-not-android-mode/11315 "2019-05-16T21:35:54Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Veci](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@Veci](https://discourse.processing.org/u/Veci)\
**Post date:** [November 23, 2019, 8:49am UTC](https://discourse.processing.org/t/is-the-ipcapture-library-not-usable-not-android-mode/11315/21 "2019-11-23T08:49:43Z")

</div>

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

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

```

instead of:

```auto
image(cam, 0, 0);

```

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

---

<div class="post-metadata">

**Author:** ![rodrigorez](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rodrigorez](https://discourse.processing.org/u/rodrigorez)\
**Post date:** [February 6, 2020, 4:35am UTC](https://discourse.processing.org/t/is-the-ipcapture-library-not-usable-not-android-mode/11315/22 "2020-02-06T04:35:54Z")

</div>

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](http://192.168.0.12:8080/video)”, “”, “”); //android\_IPWebcam  
//cam = new IPCapture(this, “[http://192.168.0.10:81/stream](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”);  
}  
}  
//============================================//

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [February 6, 2020, 6:43am UTC](https://discourse.processing.org/t/is-the-ipcapture-library-not-usable-not-android-mode/11315/23 "2020-02-06T06:43:11Z")

</div>

> **[IPCaptureTest\_2-release-signed.zip](https://drive.google.com/file/d/1Vm7KeBm59TQLZbKV9_KZoVF8kyJje5YP/view?usp=sharing)**
>
> Google Drive file.

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

[Previous page](https://discourse.processing.org/t/is-the-ipcapture-library-not-usable-not-android-mode/11315.md?page=1)
