> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # 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` > stopStream function in the WebRTC namespace.