MediaStreamTrackGenerator Class
A track created from the frames or the audio samples written to a stream (the legacy API of Chromium, replaced by VideoTrackGenerator): each VideoFrame (video track) or AudioData (audio track) written to the writable stream of the scripts is delivered to the sinks of the track, then closed.
public sealed class MediaStreamTrackGenerator : MediaStreamTrack- Inheritance
MediaStreamTrackMediaStreamTrackGenerator
Constructors
| Name | Description |
|---|---|
| MediaStreamTrackGenerator(MediaStreamTrackGeneratorInit) | Creates a generator of a kind. |
| MediaStreamTrackGenerator(string) | Creates a generator of a kind. |
MediaStreamTrackGenerator overloads
MediaStreamTrackGenerator(MediaStreamTrackGeneratorInit)
InsertableStreams.csCreates a generator of a kind.
public MediaStreamTrackGenerator(MediaStreamTrackGeneratorInit init)Parameters
initMediaStreamTrackGeneratorInit- The kind of the track.
Exceptions
TypeErrorException- The kind is invalid.
See also
MediaStreamTrackGenerator(string)
InsertableStreams.csCreates a generator of a kind.
public MediaStreamTrackGenerator(string kind)Parameters
kindstring- The kind of the track:
audioorvideo.
Exceptions
TypeErrorException- The kind is invalid.
See also
Properties
| Name | Description |
|---|---|
| Writable | Gets the WritableStream to which the scripts write the frames or the audio samples (an object of the realm of the scripts). |
Writable
InsertableStreams.csGets the WritableStream to which the scripts write the frames or the audio samples (an object of the realm of the scripts).
public object Writable { get; }