> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# startRecording

> startRecording method for the RoomSession class.

### startRecording

* **startRecording**(): `Promise<RoomSessionRecording>` - See [RoomSessionRecording documentation](/docs/browser-sdk/v3/js/reference/video/room-session-recording) for more details.

Starts the recording of the room. You can use the returned [RoomSessionRecording](/docs/browser-sdk/v3/js/reference/video/room-session-recording) object to control the recording (e.g., pause, resume, stop).

#### Returns

`Promise<RoomSessionRecording>` - See [RoomSessionRecording documentation](/docs/browser-sdk/v3/js/reference/video/room-session-recording) for more details.

#### Permissions

* `room.recording`

You need to specify the permissions when [creating the Video Room Token](/docs/apis/rest/video/room-tokens/create-room-token) on the server side.

#### Example

```javascript
const rec = await roomSession.startRecording();
await rec.stop();
```