iPhone's Camera
Last vision: 2023.10.17
This project, implemented through Processing, leverages the camera(s) of an iPhone (or other external camera) for screen recording, with the flexibility to integrate existing Processing code.
Before commencing the project, it is essential to ensure that the Continuity Camera feature is enabled.
In iphone>General>Airplay&Handoff>Continuity Camera
import processing.video.*;
Capture camR; //you can change the name
void setup() {
size(640,480); //size(1280,960) you can change whatever you want
String[] cameras = Capture.list();
for (int i = 0; i < cameras.length; i++) {
println(cameras[i]);
camR = new Capture(this, cameras[1]); //0 for build in camera, 1 is iPhone, try it out
camR.start();
}}
void draw() {
if (camR.available() == true) {
camR.read();
}
image(camR, 0, 0, width, height);
}