Skip to main content

Stop Stream

The StopStream verb is used to stop a stream that was started with a previous <StartStream> verb.

If there is no stream with the given name on the call, this verb has no effect.

Text Content

There is no text content available to be set for the <StopStream> verb.

Attributes

AttributeDescription
name(required) The name of the stream to stop. This is either the user selected name when sending the <StartStream> verb, or the system generated name returned in the Media Stream Started webhook if <StartStream> was sent with no name attribute.
wait(optional) If set to true, BXML execution will pause at this verb until the WebSocket connection established by <StartStream> is closed. This is essential for bidirectional streams where your service needs to send audio back over the WebSocket — without wait="true", the call would continue executing subsequent verbs (or end if there are none), closing the WebSocket before your service can respond. When the WebSocket connection closes (either by your server or by a timeout), BXML execution resumes with the next verb. Default is false.

Webhooks Received

WebhooksCan reply with more BXML
Media Stream StoppedNo

Examples

Stopping a media stream

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<StopStream name="live_audience"/>
</Response>