addLiveStreamingEndpoints({ endpoints, instanceId? })
Prebuilt
Custom
Adds one or more RTMP destinations to an active live stream without interrupting it. Must be called after startLiveStreaming().
The change is applied asynchronously: this method returns once the request is sent. Watch the live-streaming-warning event to learn whether the media server rejected the change or a destination could not be reached; its details.endpoints names the destinations concerned. The REST counterpart is POST /rooms/:name/live-streaming/add-endpoints.
Parameters
DailyStreamingEndpoint[]
required
An array of endpoint objects to add. Each object has a single
endpoint string — the RTMP/RTMPS ingest URL.string
Optional. The ID of the streaming instance to add endpoints to. Required when running multiple simultaneous streams.
Return value
void