MediaStreamAudioSourceNode Class
A source whose output is the audio of a track of a MediaStream (https://webaudio.github.io/web-audio-api/#MediaStreamAudioSourceNode): the audio track whose identifier is the first in code unit order when the node is created. The track is played even when it is removed from the stream; a track that is ended, disabled or muted outputs silence.
public sealed class MediaStreamAudioSourceNode : AudioNode- Inheritance
AudioNodeMediaStreamAudioSourceNode
Constructors
| Name | Description |
|---|---|
| MediaStreamAudioSourceNode(AudioContext, MediaStreamAudioSourceOptions) | Creates a source of the audio of a stream. |
MediaStreamAudioSourceNode(AudioContext, MediaStreamAudioSourceOptions)
MediaStreamAudioNodes.csCreates a source of the audio of a stream.
public MediaStreamAudioSourceNode(AudioContext context, MediaStreamAudioSourceOptions options)Parameters
contextAudioContext- The context.
optionsMediaStreamAudioSourceOptions- The options, with the stream.
Exceptions
DomException- An
InvalidStateError: the stream has no audio track.
See also
Properties
| Name | Description |
|---|---|
| MediaStream | Gets the stream given to the constructor. |
MediaStream
MediaStreamAudioNodes.csGets the stream given to the constructor.
public MediaStream MediaStream { get; }