Skip to main content
Paid plans only updateLiveStreaming(options) Requires the caller to be an owner or streaming admin (a participant with 'streaming' in their canAdmin permission).

Parameters

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

Return value

Returns void. Listen for live-streaming-updated to confirm the change.

Example

// Switch to active-participant layout
call.updateLiveStreaming({
  layout: { preset: 'active-participant' },
});

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

See also