Track recording
Records a single media track. kind is required, and the kind you stop with must match the one you started.
- Node.js
- Go
await client.recordings.track.start(roomId, { participantId, kind: "video" });
await client.recordings.track.stop(roomId, participantId, "video");
client.Recordings.Track.Start(ctx, roomID, videosdk.TrackRecordingStartParams{ParticipantID: participantID, Kind: videosdk.TrackKindVideo})
client.Recordings.Track.Stop(ctx, roomID, participantID, videosdk.TrackKindVideo)
kind is audio, video, screen_audio, or screen_video.
Manage recordings
List, fetch, and delete track recordings:
- Node.js
- Go
await client.recordings.track.list({ roomId });
await client.recordings.track.get(recordingId);
await client.recordings.track.delete(recordingId);
client.Recordings.Track.List(ctx, videosdk.IndividualRecordingListParams{RoomID: videosdk.String(roomID)})
client.Recordings.Track.Get(ctx, recordingID)
client.Recordings.Track.Delete(ctx, recordingID)
The recording object
Returned by recordings.track.list and get.
| Field | Type | Description |
|---|---|---|
id | string | Recording id. |
roomId | string | Room this recording belongs to. |
participantName | string | Name of the recorded participant. |
files | object[] | Output files, each with a fileUrl. |
webhook | object | Webhook delivery summary. |
start | string | Start time (ISO-8601). |
end | string | End time, null while still recording. |
Got a Question? Ask us on discord

