startLiveStreaming(options)
Starts an RTMP or HLS live stream. Requires the initiating participant to be an owner or streaming admin (a participant with 'streaming' in their canAdmin permission). The number of live streams you can run at once in a single room is set by max_streaming_instances_per_room, which defaults to 2. Contact us to change it for your domain.
Parameters
options: DailyLiveStreamingOptions
Accepts all fields from DailyStreamingOptions plus the following live-streaming-specific fields:
string | string[]
One or more RTMP destination URLs. When multiple URLs are provided, each receives the same layout. Avoid using this field if your URL contains sensitive values (stream keys, etc.) — use
endpoints instead.DailyStreamingEndpoint[]
Array of endpoint objects (
{ endpoint: string }). Supports both RTMP and HLS. Only one HLS endpoint can be provided. Preferred over rtmpUrl.Provide either
rtmpUrl or endpoints — not both. HLS can only be started via endpoints.DailyStreamingOptions for all shared options: output quality (width, height, fps, videoBitrate, audioBitrate, backgroundColor), session lifetime (instanceId, minIdleTimeOut, maxDuration), output artifacts (dataOutputs), and layout.
Return value
Returnsvoid. Listen for live-streaming-started to confirm the stream is active.