MediaStreamAudioSourceNode class

The interface is a type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. This media could be from a microphone (through getUserMedia()) or from a remote peer on a WebRTC call (using the RTCPeerConnection's audio tracks). A has no inputs and exactly one output, and is created using the AudioContext.createMediaStreamSource() method. The takes the audio from the first MediaStreamTrack whose kind attribute's value is audio. See Track ordering for more information about the order of tracks. The number of channels output by the node matches the number of tracks found in the selected audio track.

EventTarget

AudioNode

MediaStreamAudioSourceNode

Number of inputs 0

Number of outputs 1

Channel count

defined by the first audio [MediaStreamTrack]
passed to the
[AudioContext.createMediaStreamSource()]
method that created it.
Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited