> ## 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.

# localVideo()

> Returns whether the local camera is on.

`localVideo()`

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

Returns whether the local camera is on. Returns `false` when the local video track state is `'off'` or `'blocked'`, `true` otherwise, and `null` if not in a call.

## Return value

Returns `boolean | null`.

## Example

```javascript theme={null}
if (!call.localVideo()) {
  console.log('Camera is off, blocked, or not in a call');
}
```

## See also

<CardGroup>
  <Card title="Types" icon="t" iconType="solid">
    * [DailyTrackState](/reference/daily-js/types/daily-track-state)
  </Card>

  <Card title="Methods" icon="code" iconType="solid">
    * [localAudio()](/reference/daily-js/instance-methods/local-audio)
    * [setLocalVideo()](/reference/daily-js/instance-methods/set-local-video)
    * [participants()](/reference/daily-js/instance-methods/participants)
  </Card>

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

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