Skip to main content
Paid plans only addLiveStreamingEndpoints({ endpoints, instanceId? }) Adds one or more RTMP destinations to an active live stream without interrupting it. Must be called after startLiveStreaming().
Only works when the stream was started with the endpoints parameter. Cannot be used to add destinations to a stream started with rtmpUrl.

Parameters

endpoints
DailyStreamingEndpoint[]
required
An array of endpoint objects to add. Each object has a single endpoint string — the RTMP/RTMPS ingest URL.
instanceId
string
Optional. The ID of the streaming instance to add endpoints to. Required when running multiple simultaneous streams.

Return value

void

Example

call.addLiveStreamingEndpoints({
  endpoints: [
    { endpoint: 'rtmps://backup.cdn.example.com/live/key-2' },
    { endpoint: 'rtmps://social.example.com/live/key-3' },
  ],
});

See also