'NullPointerException' in Capture example (Mac osx 10.8.* mountain lion / Macbook Pro)
in
Core Library Questions
•
11 months ago
After upgrading the Mac os to 10.8.* version (mountain lion),
just simple video capturing example does not work.
For instance, the code below generates NullPointerException.
--------------------------------------------------------------
import prcessing.video.*;
Capture cam;
void setup()
{
size(640,480);
cam = new Capture(this, width, height, Capture.list()[1], 30); // I also tried with Capture.list()[0]
}
-----------------------------------------------------------------
or just this simpler code generates the same error :
-------------------------------------------------
import processing.video.*;
void setup()
{
size(640, 480);
String[] camera = Capture.list();
}
--------------------------------------------------
My macbook has built-in camera, of course, but it seems the processing does not recognize it.
What could I do?
(I'm using processing 2.0b5 version.)
1