create_live_stream
Create a live stream on the selected live project.
Call this when the user asks to start streaming. Omit `ls_project_id`
when they have one live project. When they name `rtmp`, `webrtc`, or
`srt` for this new stream, pass it as `input_format`. When they name a
stream that already exists, do not create another one — call
`update_live_stream` on that id. WebRTC and SRT need `start_live_stream`
before ingest works. RTMP can start on publish only when a free
transcoder is available within about 15 seconds. If none is, the stream
goes to `stopped` and the publish is rejected. Call `start_live_stream`
before asking the user to publish, including for RTMP. The response has
no `stream_key` — call `get_live_stream_key` when the user needs to paste
it into OBS or ffmpeg.
If the owner has no live project, the portal creates "Your First Live
Project". Tell the user that name. If they have several, the result is
`code: live_project_ambiguous` with `live_projects`; ask and retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Stream name. | |
| input_format | No | Ingest protocol. Default rtmp. | |
| ls_project_id | No | Live project id. Omit when the owner has one. | |
| output_format | No | Playback packaging. Default hls. | |
| stream_timeout | No | Idle timeout in seconds, 1–7200. | |
| playback_domain | No | An existing live playback domain. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||