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
AudioNode MediaStreamAudioSourceNode

Constructors

NameDescription
MediaStreamAudioSourceNode(AudioContext, MediaStreamAudioSourceOptions)Creates a source of the audio of a stream.

MediaStreamAudioSourceNode(AudioContext, MediaStreamAudioSourceOptions)

MediaStreamAudioNodes.cs

Creates a source of the audio of a stream.

public MediaStreamAudioSourceNode(AudioContext context, MediaStreamAudioSourceOptions options)

Parameters

context AudioContext
The context.
options MediaStreamAudioSourceOptions
The options, with the stream.

Exceptions

DomException
An InvalidStateError: the stream has no audio track.

See also

Properties

NameDescription
MediaStreamGets the stream given to the constructor.

Gets the stream given to the constructor.

public MediaStream MediaStream { get; }