stopStream

View as MarkdownOpen in Claude

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 for more details.

Returns

void