Remove a re-broadcast target
Code Mode: praxis.media.streams.outputs.delete
HTTP: DELETE /media/v1/streams/{stream_id}/outputs/{output_id}
Stop re-broadcasting to a target and forget it: its connection is closed at once and its key is deleted. The stream, its recording and its other outputs are not touched. Deleting is not undone and the id is not reused; to send there again create a new output. Example: DELETE /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.
签名
praxis.media.streams.outputs.delete(args:{path:{/** e.g. "mst_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ stream_id:string;/** e.g. "mso_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ output_id:string}}):Promise<{/** The id of the deleted output; it is not reused. e.g. "mso_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ id:string;/** Always media.stream.output. e.g. "media.stream.output" */ object:"media.stream.output";/** Always true. */ deleted: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. |
| output_id | path | string | 是 | The output’s id, the id field returned by streams.outputs.create or streams.outputs.list (mso_ followed by 26 lowercase base32 characters); an output of another stream or organization answers 404. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The output is deleted. |
| 404 | application/json | No such stream or output in your organization, or Media Streams is not released for it. |