# 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](https://osmates.com/docs/usb#use-a-webcam-microphone-or-bluetooth-adapter).

## Turn the camera on

1. Select the machine, choose **Machine > Machine Settings**, then click **Devices**.
2. Turn on **Camera**. The machine gets it at once, also while it runs.
3. The first time an app in the machine uses it, click **Allow** to let OSMates use the camera.

```sh
osmates vm set dev --camera
```

New machines and clones start with the camera off.

## Choose the Mac's camera

1. Select the machine, choose **Machine > Machine Settings**, then click **Devices**.
2. Choose a camera under **Mac Camera**. **Preferred by macOS** follows the camera macOS picks.

```sh
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

1. Select the machine, choose **Machine > Machine Settings**, then click **Devices**.
2. Turn off **Camera**. The camera leaves the machine at once.

```sh
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.
