# Camera

> A camera feed as one video stream. The Toy names a logical camera; the host binds it to a device after the person allows it.

Source: https://docs.tune.toys/nodes/video.camera/

Camera is the Toy's webcam source. It outputs one video stream and is the usual starting point for filters, keying and sensing.

## What it does

The Toy names a logical camera in `data.label` (for example Camera A); the host binds that label to a real device after the person allows it, and the camera prompts when the Toy is played. Only the label is stored in the Toy, never a device id. The output is one stream of frames, paced by the camera: the newest frame wins and slow consumers drop frames rather than queue them. The Toy never records or uploads the camera.

## When to use it

Use it as the picture source for [Color](https://docs.tune.toys/nodes/video.color/), [Chroma key](https://docs.tune.toys/nodes/video.chroma-key/) and the [sensing nodes](https://docs.tune.toys/concepts/sensing/). Use [Screen capture](https://docs.tune.toys/nodes/video.display/) for a window or tab instead.

## Ports

<!-- ports:start -->

| Port    | Direction | Signal | Lanes |
| ------- | --------- | ------ | ----- |
| `video` | Output    | Video  | 1     |

<!-- ports:end -->

## Parameters

<!-- parameters:start -->

| Parameter | Label  | Range  | Default | Unit | Scale  | Notes                                                                                                         |
| --------- | ------ | ------ | ------- | ---- | ------ | ------------------------------------------------------------------------------------------------------------- |
| `mirror`  | Mirror | 0 to 1 | 1       |      | linear | Flip the image horizontally so the person sees themselves as in a mirror. Choices: 0 As captured, 1 Mirrored. |

<!-- parameters:end -->

<!-- data:start -->

- `label`: text.

<!-- data:end -->

### Mirror (`mirror`)

Flips the picture left to right, like a mirror. On by default so moving your hand right moves it right on screen.

## Tips

- Press Play to start the camera; the browser asks permission first.
- Declare no device ids: the label is the only thing the Toy keeps.
- Video needs the browser's WebGPU video engine. The Player and exports do not run video yet and report it unavailable. To see a video output, bind a live Screen in the Frame to it.

## See also

[Screen capture](https://docs.tune.toys/nodes/video.display/), [Color](https://docs.tune.toys/nodes/video.color/), [Face](https://docs.tune.toys/nodes/sense.face/), [Video](https://docs.tune.toys/concepts/video/), [Control lanes](https://docs.tune.toys/concepts/control-lanes/).
