MediaStreamAudioDestinationNode
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since October 2018.
TheMediaStreamAudioDestinationNode interface represents an audio destination consisting of aWebRTCMediaStream with a singleAudioMediaStreamTrack, which can be used in a similar way to aMediaStream obtained fromnavigator.mediaDevices.getUserMedia().
It is anAudioNode that acts as an audio destination, created using theAudioContext.createMediaStreamDestination() method.
| Number of inputs | 1 |
|---|---|
| Number of outputs | 0 |
| Channel count | 2 |
| Channel count mode | "explicit" |
| Channel count interpretation | "speakers" |
In this article
Constructor
MediaStreamAudioDestinationNode()Creates a new
MediaStreamAudioDestinationNodeobject instance.
Instance properties
Inherits properties from its parent,AudioNode.
MediaStreamAudioDestinationNode.streamA
MediaStreamcontaining a singleMediaStreamTrackwhosekindisaudioand with the same number of channels as the node. You can use this property to get a stream out of the audio graph and feed it into another construct, such as aMedia Recorder.
Instance methods
Inherits methods from its parent,AudioNode.
Example
SeeAudioContext.createMediaStreamDestination() for example code that creates aMediaStreamAudioDestinationNode and uses it as a source for audio to be recorded.
Specifications
| Specification |
|---|
| Web Audio API> # MediaStreamAudioDestinationNode> |