> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# addLiveStreamingEndpoints()

> Add RTMP destinations to an active live stream.

<Badge color="blue">Paid plans only</Badge>

`addLiveStreamingEndpoints({ endpoints, instanceId? })`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

Adds one or more RTMP destinations to an active live stream without interrupting it. Must be called after [`startLiveStreaming()`](/reference/daily-js/instance-methods/start-live-streaming).

<Warning>
  Only works when the stream was started with the `endpoints` parameter. Cannot be used to add destinations to a stream started with `rtmpUrl`.
</Warning>

## Parameters

<ParamField body="endpoints" type="DailyStreamingEndpoint[]" required>
  An array of endpoint objects to add. Each object has a single `endpoint` string — the RTMP/RTMPS ingest URL.
</ParamField>

<ParamField body="instanceId" type="string">
  Optional. The ID of the streaming instance to add endpoints to. Required when running multiple simultaneous streams.
</ParamField>

## Return value

`void`

## Example

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

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [startLiveStreaming()](/reference/daily-js/instance-methods/start-live-streaming)
    * [removeLiveStreamingEndpoints()](/reference/daily-js/instance-methods/remove-live-streaming-endpoints)
    * [updateLiveStreaming()](/reference/daily-js/instance-methods/update-live-streaming)
    * [stopLiveStreaming()](/reference/daily-js/instance-methods/stop-live-streaming)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [Live streaming events](/reference/daily-js/events/live-streaming-events)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [daily-js: Live streaming](/docs/daily-js/features/live-streaming)
    * [Live streaming overview](/docs/guides/features/live-streaming)
  </Card>
</CardGroup>
