Class MediaElementAudioSourceNode
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The MediaElementAudioSourceNode interface represents an audio source consisting of an HTML {{ htmlelement("audio") }} or {{ htmlelement("video") }} element. It is an AudioNode that acts as an audio source.
[Value("MediaElementAudioSourceNode")]
public class MediaElementAudioSourceNode : AudioNode
- Inheritance
-
MediaElementAudioSourceNode
- Inherited Members
Remarks
A MediaElementAudioSourceNode has no inputs and exactly one output, and is created using the CreateMediaElementSource(HTMLMediaElement) method. The number 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.
Constructors
MediaElementAudioSourceNode()
public MediaElementAudioSourceNode()
MediaElementAudioSourceNode(AudioContext, MediaElementAudioSourceOptions)
The MediaElementAudioSourceNode() constructor creates a new MediaElementAudioSourceNode object instance.
public MediaElementAudioSourceNode(AudioContext context, MediaElementAudioSourceOptions options)
Parameters
contextAudioContextoptionsMediaElementAudioSourceOptions
Remarks
Properties
MediaElement
The MediaElementAudioSourceNode interface's
read-only mediaElement property indicates the
HTMLMediaElement that contains the audio track from which the node is
receiving audio.
[Value("mediaElement")]
public HTMLMediaElement MediaElement { get; }
Property Value
- HTMLMediaElement
An HTMLMediaElement representing the element which contains the source
of audio for the node.
Remarks
This stream was specified when the node was first created,
either using the MediaElementAudioSourceNode(AudioContext, MediaElementAudioSourceOptions)
constructor or the CreateMediaElementSource(HTMLMediaElement) method.