...
Download the latest pre-release of version 2 from the github releases (current: r6-v2.0-beta4)
Unzip the file and move the folder to your Processing library folder (overwrite existing video folder in necessary)
🎉🙌🏻 (at least on Unix & Windows)
From now on, make sure that you always provider a camera to the Capture constructor in your sketch:
Code Block | ||
---|---|---|
| ||
String[] cameras = Capture.list();
video = new Capture(this, 640, 480, cameras[0]); |
MacOS Mojave / Catalina Issues
...
For most modern apps, this works without any problems. But Processing is missing (currently) the correct PList entries, so MacOS will never ask you if Processing is allowed to do that. The sketch will just close and there will be an eror error message in the console.
The workaround for this problem is to start Processing from another application, which already contains this PList entry. For example the default MacOS terminal (console) is able to run Processing and allow it to access the camera.
...