> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# setLocalVideo()

> Enables or disables the local camera.

`setLocalVideo(enabled)`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

Requires `join()` or `startCamera()` to be called first.

## Parameters

<ParamField body="enabled" type="boolean" required>
  `true` to enable the camera, `false` to disable it.
</ParamField>

## Return value

Returns `this` for chaining.

## Example

```javascript theme={null}
// Disable camera
call.setLocalVideo(false);

// Re-enable camera
call.setLocalVideo(true);
```

## See also

<CardGroup>
  <Card title="Types" icon="t" iconType="solid">
    * [DailyCallOptions: startVideoOff](/reference/daily-js/types/daily-call-options#param-start-video-off)
    * [DailyTrackState](/reference/daily-js/types/daily-track-state)
  </Card>

  <Card title="Methods" icon="code" iconType="solid">
    * [localVideo()](/reference/daily-js/instance-methods/local-video)
    * [setLocalAudio()](/reference/daily-js/instance-methods/set-local-audio)
    * [setInputDevicesAsync()](/reference/daily-js/instance-methods/set-input-devices-async)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [participant-updated](/reference/daily-js/events/participant-events#participant-updated)
    * [track-started](/reference/daily-js/events/media-events#track-started)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Audio and video](/docs/daily-js/guides/audio-video)
  </Card>
</CardGroup>
