MediaStreamTrackAudioSourceNode class
The 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 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
Number of inputs
0
Number of outputs
1
Channel count
defined by the first audio [MediaStreamTrack]
passed to the
[AudioContext.createMediaStreamTrackSource()]
method that created it.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- MediaStreamTrackAudioSourceNode(AudioContext context, MediaStreamTrackAudioSourceOptions options)
-
factory
Properties
- channelCount ↔ int
-
Available on AudioNode, provided by the PropsAudioNode extension
getter/setter pair - channelCountMode ↔ ChannelCountMode
-
Available on AudioNode, provided by the PropsAudioNode extension
getter/setter pair - channelInterpretation ↔ ChannelInterpretation
-
Available on AudioNode, provided by the PropsAudioNode extension
getter/setter pair - context → BaseAudioContext
-
Available on AudioNode, provided by the PropsAudioNode extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- numberOfInputs → int
-
Available on AudioNode, provided by the PropsAudioNode extension
no setter - numberOfOutputs → int
-
Available on AudioNode, provided by the PropsAudioNode extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
connect(
AudioNode destinationNode, [int? output = 0, int? input = 0]) → AudioNode -
Available on AudioNode, provided by the PropsAudioNode extension
-
disconnect(
[AudioNode? destinationNode, int? output, int? input]) → void -
Available on AudioNode, provided by the PropsAudioNode extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited