GO-V.ORG
As seen in

MediaStreamAudioDestinationNode: stream property

Web Audio API

Web Audio API

The `stream` property of the AudioContext interface represents a MediaStream containing a single audio MediaStreamTrack with the same number of channels as the node itself.

You can use this property to get a stream out of the audio graph and feed it into another construct, such as a [Media Recorder](/docs/Web/API/MediaStream_Recording_API).

## Value

A MediaStream containing a single audio track. The audio track is a MediaStreamTrack whose kind is `audio`.

## Examples

See [`AudioContext.createMediaStreamDestination()`](/docs/Web/API/AudioContext/createMediaStreamDestination#examples) for example code that creates a `MediaStreamAudioDestinationNode` and uses its `stream` property as a source for audio to be recorded.

## Specifications

## Browser compatibility

## See also

- [Using the Web Audio API](/docs/Web/API/Web_Audio_API/Using_Web_Audio_API)

source: MDN Web Docs mirror · page

Cite this

"MediaStreamAudioDestinationNode: stream property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode/stream

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·