MediaElementAudioSourceNode class
A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- MediaElementAudioSourceNode.new(AudioContext context, MediaElementAudioSourceOptions options)
-
factory
Properties
- addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - channelCount ↔ num
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referencegetter/setter pair - channelCountMode ↔ ChannelCountMode
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referencegetter/setter pair - channelInterpretation ↔ ChannelInterpretation
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referencegetter/setter pair - connect → ({void Function(AudioParam destinationParam, [num? output]) $1, AudioNode Function(AudioNode destinationNode, [num? output, num? input]) $2})
-
Available on AudioNode, provided by the AudioNode$Typings extension
Overload accessor: $1, $2no setter - context → BaseAudioContext
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referenceno setter - disconnect → ({void Function() $1, void Function(num output) $2, void Function(AudioNode destinationNode) $3, void Function(AudioParam destinationParam) $4, void Function(AudioNode destinationNode, num output) $5, void Function(AudioParam destinationParam, num output) $6, void Function(AudioNode destinationNode, num output, num input) $7})
-
Available on AudioNode, provided by the AudioNode$Typings extension
Overload accessor: $1, $2, $3, $4, $5, $6, $7no setter - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- mediaElement → HTMLMediaElement
-
Available on MediaElementAudioSourceNode, provided by the MediaElementAudioSourceNode$Typings extension
MDN Referenceno setter - numberOfInputs → num
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referenceno setter - numberOfOutputs → num
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referenceno setter - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - 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