Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The MediaStreamTrackAudioSourceNode interface is a type of AudioNode which represents a source of audio data taken from a specific MediaStreamTrack obtained through the WebRTC or Media Capture and Streams APIs.
The audio itself might be input from a microphone or other audio sampling device, or might be received through a RTCPeerConnection, among other possible options.
A MediaStreamTrackAudioSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaStreamTrackSource() method. This interface is similar to MediaStreamAudioSourceNode, except it lets you specifically state the track to use, rather than assuming the first audio track on a stream.
EventTarget AudioNode MediaStreamTrackAudioSourceNode| 0 |
| 1 |
| defined by the first audio MediaStreamTrack passed to the AudioContext.createMediaStreamTrackSource() method that created it. |
Creates a new MediaStreamTrackAudioSourceNode object instance with the specified options.
The MediaStreamTrackAudioSourceNode interface has no properties of its own; however, it inherits the properties of its parent, AudioNode.
Inherits methods from its parent, AudioNode.
See AudioContext.createMediaStreamSource() for example code that uses this object.
| Web Audio API # MediaStreamTrackAudioSourceNode |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 26, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.