web api interface
MediaStreamAudioDestinationNode
The MediaStreamAudioDestinationNode interface represents an audio destination consisting of a WebRTC MediaStream with a single AudioMediaStreamTrack, which can be used in a similar way to a MediaStream obtained from navigator.mediaDevices.getUserMedia().
It is an AudioNode that acts as an audio destination, created using the createMediaStreamDestination() method.
| Number of inputs | 1 |
|---|---|
| Number of outputs | 0 |
| Channel count | 2 |
| Channel count mode | "explicit" |
| Channel count interpretation | "speakers" |
Constructor
MediaStreamAudioDestinationNode()- : Creates a new
MediaStreamAudioDestinationNodeobject instance.
- : Creates a new
Instance properties
Inherits properties from its parent, AudioNode.
stream- : A
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 a Media Recorder.
- : A
Instance methods
Inherits methods from its parent, AudioNode.
Example
See AudioContext.createMediaStreamDestination() for example code that creates a MediaStreamAudioDestinationNode and uses it as a source for audio to be recorded.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.