/Web APIs


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"



Creates a new MediaStreamAudioDestinationNode object instance.

Instance properties

Inherits properties from its parent, AudioNode.


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.


See AudioContext.createMediaStreamDestination() for example code that creates a MediaStreamAudioDestinationNode and uses it as a source for audio to be recorded.


Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
MediaStreamAudioDestinationNode 57 79 53 No 44 14.1 57 57 53 43 14.5 7.0
MediaStreamAudioDestinationNode 25 18 25 No 15 11 ≤37 25 25 14 11 1.5
stream 25 18 25 No 15 11 ≤37 25 25 14 11 1.5

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.