Class MediaStreamTrackAudioSourceNode
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The MediaStreamTrackAudioSourceNode 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.
[Value("MediaStreamTrackAudioSourceNode")]
public class MediaStreamTrackAudioSourceNode : AudioNode
- Inheritance
-
MediaStreamTrackAudioSourceNode
- Inherited Members
Remarks
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 MediaStreamTrackAudioSourceNode has no inputs and exactly one output, and is created using the CreateMediaStreamTrackSource(MediaStreamTrack) 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.
-Using the Web Audio API
-WebRTC API
-Media Capture and Streams API (Media Streams)
-MediaStreamAudioSourceNode
Constructors
MediaStreamTrackAudioSourceNode()
public MediaStreamTrackAudioSourceNode()
MediaStreamTrackAudioSourceNode(AudioContext, MediaStreamTrackAudioSourceOptions)
The Web Audio API's MediaStreamTrackAudioSourceNode() constructor creates and returns a new MediaStreamTrackAudioSourceNode object whose audio is taken from the MediaStreamTrack specified in the given options object.
public MediaStreamTrackAudioSourceNode(AudioContext context, MediaStreamTrackAudioSourceOptions options)
Parameters
contextAudioContextoptionsMediaStreamTrackAudioSourceOptions
Remarks
Another way to create a MediaStreamTrackAudioSourceNode is to call the CreateMediaStreamTrackSource(MediaStreamTrack) method, specifying the MediaStreamTrack from which you want to obtain audio.