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

# startRecording()

> Starts a recording of a Daily call.

Paid plans only

`startRecording(options?)`

If server-side recording (`cloud`) is enabled for the room, starts a recording of all meeting participants that have their cams and/or mics on. Devices that are off are not recorded. Requires recording to be enabled for the room.

Multiple recording sessions can run concurrently (up to [`max_streaming_instances_per_room`](https://docs.daily.co/reference/rest-api/domain/get-domain-config#response-config-max-streaming-instances-per-room) on your domain) if each is started with a unique `instanceId`.

## Parameters

`options?: DailyStreamingOptions`

All fields are optional. See [`DailyStreamingOptions`](https://docs.daily.co/reference/react-native/types/daily-streaming-options) for the full list of shared options: output quality (`width`, `height`, `fps`, `videoBitrate`, `audioBitrate`, `backgroundColor`), session lifetime (`instanceId`, `minIdleTimeOut`, `maxDuration`), output artifacts (`dataOutputs`), and `layout`.

The `type` field is recording-specific:

**type** `'cloud' | 'cloud-audio-only' | 'raw-tracks'` (default: 'cloud')

Recording type:

* `'cloud'` — cloud recording with video composition (default)
* `'cloud-audio-only'` — cloud recording, audio only; no video composition charges
* `'raw-tracks'` — individual uncomposed audio/video tracks per participant

## Return value

Returns `void`. Listen for [`recording-started`](https://docs.daily.co/reference/react-native/events/recording-events#recording-started) to confirm the recording is active.

## Examples

```javascript theme={null}
// Start a cloud recording at 720p
await call.startRecording({
  width: 1280,
  height: 720,
  fps: 25,
  layout: {
    preset: 'default',
    max_cam_streams: 5,
  },
});
```

### Audio-only recording

> [!NOTE]
>
> If you know ahead of time that video is not needed, use `cloud-audio-only` to avoid video composition charges. You can also set the recording type at the room level so that `startRecording()` requires no arguments.

```javascript theme={null}
await call.startRecording({
  type: 'cloud-audio-only',
});
```

You can also use the `audio-only` layout preset with a standard cloud recording to select specific participants' audio:

```javascript theme={null}
await call.startRecording({
  layout: {
    preset: 'audio-only',
    participants: {
      audio: ['user-id-of-participant-1', 'user-id-of-participant-2'],
    },
  },
});
```

### Raw tracks (audio only)

```javascript theme={null}
await call.startRecording({
  layout: {
    preset: 'raw-tracks-audio-only',
  },
});
```

### Custom layout with VCS baseline composition

```javascript theme={null}
await call.startRecording({
  layout: {
    preset: 'custom',
    composition_id: 'daily:baseline',
    composition_params: {
      mode: 'dominant',
      'videoSettings.preferScreenshare': true,
    },
    session_assets: {
      'images/logo.png': 'https://example.com/logo.png',
    },
  },
});
```

See [`DailyStreamingLayoutConfig`](https://docs.daily.co/reference/react-native/types/daily-streaming-layout-config) for all layout presets and the full VCS baseline composition parameter reference.

## See also

> [card] Types
>
> * [DailyStreamingOptions](https://docs.daily.co/reference/react-native/types/daily-streaming-options.md)
> * [DailyStreamingLayoutConfig](https://docs.daily.co/reference/react-native/types/daily-streaming-layout-config.md)

> [card] Methods
>
> * [updateRecording()](https://docs.daily.co/reference/react-native/instance-methods/update-recording.md)
> * [stopRecording()](https://docs.daily.co/reference/react-native/instance-methods/stop-recording.md)
> * [startLiveStreaming()](https://docs.daily.co/reference/react-native/instance-methods/start-live-streaming.md)

> [card] Events
>
> * [Recording events](https://docs.daily.co/reference/react-native/events/recording-events.md)

> [card] Guides
>
> * [Recording](https://docs.daily.co/docs/guides/features/recording)

> [card] REST API
>
> * [Create room: enable\_recording](https://docs.daily.co/reference/rest-api/rooms/create-room.md#body-properties-enable-recording)
> * [Start recording](https://docs.daily.co/reference/rest-api/rooms/recordings/start.md)
> * [recording-started webhook](https://docs.daily.co/reference/rest-api/webhooks/events/recording-started.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.