update_live_stream
Change a live stream. Pass at least one change.
To switch ingest protocol, set `input_format` (`rtmp`, `webrtc`, or
`srt`) on the stream id the user named. Changing protocol does not
require starting or stopping the stream. Do not change its status
unless the user also asked to start or stop it. QA accepts this update
in `created`, `waiting`, `live`, `idle`, and `stopped`, and the status
stays the same. Do not create or start a different stream that already
uses the requested protocol.
WebRTC and SRT ingest URLs are not in this response. Tell the user to
open this stream in the portal for those URLs.
DVR records only to Qencode Media Storage. `dvr_bucket` must be a bucket
from `list_buckets`. Do not send storage keys or secrets; the portal
builds the destination. Enabling DVR needs a destination now or from an
earlier update. An empty `callback_url` clears the callback.
`code: nothing_to_update` means no field was sent. `bucket_not_found` and
`storage_not_ready` mean the bucket is missing or Media Storage is not
enabled — do not invent a bucket.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New stream name. | |
| dvr_path | No | Folder inside dvr_bucket. Requires dvr_bucket. | |
| stream_id | Yes | Live stream id. | |
| dvr_bucket | No | Owner's Media Storage bucket, from list_buckets. | |
| dvr_enabled | No | Record to Qencode Media Storage. Needs dvr_bucket. | |
| callback_url | No | HTTPS callback. Pass an empty string to clear it. | |
| input_format | No | Switch this stream to rtmp, webrtc, or srt. | |
| output_format | No | Playback packaging. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||