startRecording

View as Markdown

startRecording

Starts the recording of the room. You can use the returned RoomSessionRecording object to control the recording (e.g., pause, resume, stop).

Returns

Promise<RoomSessionRecording> - See RoomSessionRecording for more details.

Example

1const rec = await roomSession.startRecording();
2await rec.stop();