Merge recording
Muxes individual recordings into a two-channel stereo audio file.
- Node.js
- Go
const { recording } = await client.recordings.merge.create({
sessionId,
channel1: [{ participantId: "participant-alice" }],
channel2: [{ participantId: "participant-bob" }],
});
result, err := client.Recordings.Merge.Create(ctx, videosdk.MergeRecordingCreateParams{
SessionID: sessionID,
Channel1: []videosdk.MergeChannelEntry{{ParticipantID: "participant-alice"}},
Channel2: []videosdk.MergeChannelEntry{{ParticipantID: "participant-bob"}},
})
Manage recordings
List merge jobs, or fetch one by its muxer id:
- Node.js
- Go
await client.recordings.merge.list({ sessionId });
await client.recordings.merge.get(muxerId);
client.Recordings.Merge.List(ctx, videosdk.MergeRecordingListParams{SessionID: videosdk.String(sessionID)})
client.Recordings.Merge.Get(ctx, muxerID)
The recording object
recordings.merge.create returns { message, recording }. list and get return the recording directly.
| Field | Type | Description |
|---|---|---|
id | string | Merge id. |
channel1 | object[] | Left-channel sources (recordingId, participantId). |
channel2 | object[] | Right-channel sources (recordingId, participantId). |
status | string | Merge job status. |
sessionId | string | Session whose audio was merged. |
file | object | Merged output file (contains fileUrl). |
start | string | Start time (ISO-8601). |
end | string | End time, null while still processing. |
Got a Question? Ask us on discord

