Skip to main content
Paid plans only updateRecording(options) Only applies to recordings using the "cloud" recording type. Requires the caller to be an owner or recording admin (a participant with 'recording' in their canAdmin permission).

Parameters

layout
DailyStreamingLayoutConfig
The new layout configuration. See DailyStreamingLayoutConfig for all presets and options.
instanceId
string
The UUID of the recording instance to update. Omit to update the default instance.

Return value

Returns void.

Example

// Switch to single-participant layout
call.updateRecording({
  layout: {
    preset: 'single-participant',
    session_id: 'abcd123...',
  },
});

// Update a specific instance with a custom VCS layout
call.updateRecording({
  instanceId: '00000000-0000-4000-8000-000000000000',
  layout: {
    preset: 'custom',
    composition_params: {
      mode: 'dominant',
      showTextOverlay: true,
      'text.content': 'Hello',
      'videoSettings.roundedCorners': true,
    },
  },
});

See also