MediaStreamAudioDestinationNode

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 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 AudioContext.createMediaStreamDestination() method.

EventTarget AudioNode MediaStreamAudioDestinationNode
Number of inputs 1
Number of outputs 0
Channel count 2
Channel count mode "explicit"
Channel count interpretation "speakers"

Constructor

MediaStreamAudioDestinationNode()

Creates a new MediaStreamAudioDestinationNode object instance.

Instance properties

Inherits properties from its parent, AudioNode.

MediaStreamAudioDestinationNode.stream

A MediaStream containing a single MediaStreamTrack whose kind is audio and 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.

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

Specification
Web Audio API
# MediaStreamAudioDestinationNode

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
MediaStreamAudioDestinationNode
MediaStreamAudioDestinationNode() constructor
stream

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

See also