Use your Mac's camera
Your Mac's camera, or an iPhone's Continuity Camera, can appear in a machine as a USB camera.
Requires a Windows machine, or a Linux machine on the OSMates engine. For a USB webcam instead, see Use USB devices.
Turn the camera on
- Select the machine, choose Machine > Machine Settings, then click Devices.
- Turn on Camera. The machine gets it at once, also while it runs.
- The first time an app in the machine uses it, click Allow to let OSMates use the camera.
osmates vm set dev --camera
New machines and clones start with the camera off.
Choose the Mac's camera
- Select the machine, choose Machine > Machine Settings, then click Devices.
- Choose a camera under Mac Camera. Preferred by macOS follows the camera macOS picks.
osmates vm set dev --camera-device "FaceTime HD Camera"
See when the camera is in use
Your Mac's camera light is on while an app in the machine uses the camera, and for 2 seconds after.
In the machine's window, Camera in the toolbar turns green while the machine sees your camera. To turn the camera on or off there, choose I/O > Camera.
Turn the camera off
- Select the machine, choose Machine > Machine Settings, then click Devices.
- Turn off Camera. The camera leaves the machine at once.
osmates vm set dev --no-camera
If the machine sees black
- The request for camera access is open, or you clicked Don't Allow. To change that, choose Apple menu > System Settings, click Privacy & Security, click Camera, then turn on OSMates.
- An agent drives the machine. Agents also can't turn the camera on.
Limits
Apps in the machine get up to 1920 x 1080 at 30 frames a second.