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

# setSubscribeToTracksAutomatically()

> Enables or disables automatic subscription to all participant tracks.

`setSubscribeToTracksAutomatically(enabled)`

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

Toggles automatic track subscription during a call. When enabled, Daily automatically subscribes to audio, video, and screen tracks from all participants. When disabled, no new subscriptions are created automatically — you manage subscriptions manually via [`updateParticipant()`](/reference/daily-js/instance-methods/update-participant).

Must be called while in a call. To start a call without subscribing to any tracks, set [`subscribeToTracksAutomatically: false`](/reference/daily-js/types/daily-call-options#param-subscribe-to-tracks-automatically) at call creation time.

<Note>
  Track subscriptions only apply over SFU connections. In P2P calls, all tracks are always received.
</Note>

## Parameters

<ParamField body="enabled" type="boolean" required>
  `true` to subscribe to all tracks automatically, `false` to manage subscriptions manually.
</ParamField>

## Return value

Returns `this` for chaining.

## Example

```javascript theme={null}
// Stop auto-subscribing, then selectively subscribe to specific participants
call.setSubscribeToTracksAutomatically(false);

call.updateParticipant(participantId, {
  setSubscribedTracks: { audio: true, video: true, screenVideo: false },
});
```

## See also

<CardGroup>
  <Card title="Types" icon="t" iconType="solid">
    * [DailyCallOptions: subscribeToTracksAutomatically](/reference/daily-js/types/daily-call-options#param-subscribe-to-tracks-automatically)
  </Card>

  <Card title="Methods" icon="code" iconType="solid">
    * [updateParticipant()](/reference/daily-js/instance-methods/update-participant)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Track subscriptions](/docs/daily-js/concepts/tracks#track-subscription)
    * [Introduction to video call architecture](/docs/guides/architecture-and-monitoring/intro-to-video-arch#track-subscriptions)
  </Card>
</CardGroup>
