1 import it.lilik.capturemjpeg.*;
3 private CaptureMJPEG capture;
4 private PImage next_img = null;
9 capture = new CaptureMJPEG
11 "http://mycamera.foo/image?speed=20"),
14 // or this if you don't need auth
15 // capture = new CaptureMJPEG
16 // (this, "http://mycamera.foo/image?speed=20");
18 capture.startCapture();
23 if (next_img != null) {
24 image(next_img, 0, 0);
29 void captureMJPEGEvent(PImage img) {