Skip to content
中文

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.

Signature

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}>;

Parameters

NameInTypeRequiredDescription
stream_idpathstringyesThe 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_idpathstringyesThe 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.

Responses

StatusContent typesDescription
200application/jsonThe output is deleted.
404application/jsonNo such stream or output in your organization, or Media Streams is not released for it.