Skip to main content
removeLiveStreamingEndpoints(options) Paid plans only Removes one or more RTMP endpoints from an active live stream. Only works on streams started with the endpoints parameter in startLiveStreaming() — not on streams started with rtmpUrl.
Do not use this method to remove all endpoints. To stop streaming entirely, call stopLiveStreaming(). Attempting to remove all endpoints with this method will fail and emit a nonfatal-error with type 'live-streaming-warning'.

Parameters

endpoints
DailyStreamingEndpoint[]
required
Array of endpoints to remove. Each entry must include the endpoint URL.
instanceId
string
Optional. The live streaming instance to target when multiple streams are active.

Return value

void

Example

await call.removeLiveStreamingEndpoints({
  endpoints: [
    { endpoint: 'rtmp://example.com/live/stream2' },
    { endpoint: 'rtmp://example.com/live/stream3' },
  ],
});

See also