List a stream's re-broadcast targets
Code Mode: praxis.media.streams.outputs.list
HTTP: GET /media/v1/streams/{stream_id}/outputs
List every output of one stream, oldest first, with the status of each (idle, starting, broadcasting or errored) and the reason of one that is errored or trying again. Use it to see at a glance which targets are live; to change one use streams.outputs.update and to follow status changes as they happen read streams.events.list. A stream has at most 5 outputs, so the list is one page. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs.
签名
praxis.media.streams.outputs.list(args:{path:{/** e.g. "mst_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ stream_id:string}}):Promise<{/** Always list. e.g. "list" */ object:"list";/** The stream's outputs. */ data:Array<{/** The output id (mso_ and 26 lowercase base32 characters); stable and never reused. e.g. "mso_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ id:string;/** Always media.stream.output. e.g. "media.stream.output" */ object:"media.stream.output";/** The target's RTMP address with its application, rtmp:// or rtmps://; the stream key is not part of it. e.g. "rtmps://live.example.com:443/app" */ url:string;/** Always true: the key is write-only and never returned; send a new stream_key with streams.outputs.update to change it. e.g. true */ stream_key_set:true;/** idle means the stream is not live; starting means connecting, or waiting to try again (1 s, then longer up to 60 s); broadcasting means the target accepted the e.g. "broadcasting" */ status:"idle"|"starting"|"broadcasting"|"errored";/** Why the last connection failed, while the output is errored or starting again after a failure; null in every other status. */ error:(({/** OUTPUT_CONNECT_FAILED: the target could not be reached or refused the connection; OUTPUT_TARGET_UNREACHABLE_FROM_PLATFORM: the target is on the Cloudflare netwo e.g. "OUTPUT_PUBLISH_REJECTED" */ code:"OUTPUT_CONNECT_FAILED"|"OUTPUT_TARGET_UNREACHABLE_FROM_PLATFORM"|"OUTPUT_PUBLISH_REJECTED"|"OUTPUT_CONNECTION_LOST"|"OUTPUT_TARGET_FORBIDDEN"|"OUTPUT_UNSUPPORTED_MEDIA";/** A sentence saying what the target answered. e.g. "the target refused the stream: NetStream.Publish.BadName" */ message:string}))|null;/** When the output was created, RFC 3339 UTC. e.g. "2026-11-28T12:00:00.000Z" */ created_at:string;/** When the output last changed (a setting or its status), RFC 3339 UTC. e.g. "2026-11-28T12:05:00.000Z" */ updated_at:string}>;/** Always false: a stream has at most 5 outputs, so one page holds all of them. */ has_more:boolean}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| stream_id | path | string | 是 | The stream’s id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The stream’s outputs. |
| 404 | application/json | No stream with this id in your organization, or Media Streams is not released for it. |