# vcam.toggle

Source: https://docs.lightair.app/developers/remote-api/vcam.toggle

> Starts the virtual camera when it's off, and stops it when it's on.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Outputs. Script plugins need the `outputs.control` permission.

## Parameters

None.

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `active` | `boolean` | no | Whether it's on now. |

## Events

- `vcam.state`
- `output.changed`

## Related

- [vcam.start](https://docs.lightair.app/developers/remote-api/vcam.start.md)
- [vcam.stop](https://docs.lightair.app/developers/remote-api/vcam.stop.md)
