> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# stopStream

> stopStream function in the WebRTC namespace.

### stopStream

* `Const` **stopStream**(`stream?`): `void`

Stops all tracks in a specified stream and fires the `ended` event for each.

#### Parameters

**`stream`** `MediaStream`

The media stream to stop. See [MediaStream](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream) for more details.

---

#### Returns

`void`