MediaStreamAudioDestinationNode: stream property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
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.
Value
A MediaStream
containing a single audio track. The audio track is a MediaStreamTrack
whose kind
is audio
.
Examples
See AudioContext.createMediaStreamDestination()
for example code that creates a MediaStreamAudioDestinationNode
and uses its stream
property as a source for audio to be recorded.
Specifications
Specification |
---|
Web Audio API # dom-mediastreamaudiodestinationnode-stream |
Browser compatibility
BCD tables only load in the browser