VideoTrackGenerator Class
Creates a video track from frames written to a stream (https://w3c.github.io/mediacapture-transform/#video-track-generator): each VideoFrame written to the writable stream of the scripts is delivered to the sinks of the track (and of its clones), then closed. The track can be played by a video element, read by a MediaStreamTrackProcessor, recorded, or transferred to another thread. The stream is closed when the track and all its clones are stopped; closing or aborting the stream ends the tracks.
public sealed class VideoTrackGeneratorRemarks
The specification exposes the interface in the dedicated workers only; it is also exposed in the windows.
See also
Constructors
| Name | Description |
|---|---|
| VideoTrackGenerator() | Creates a generator and its track (https://w3c.github.io/mediacapture-transform/#dom-videotrackgenerator-videotrackgenerator). |
VideoTrackGenerator()
InsertableStreams.csCreates a generator and its track (https://w3c.github.io/mediacapture-transform/#dom-videotrackgenerator-videotrackgenerator).
public VideoTrackGenerator()Properties
| Name | Description |
|---|---|
| Muted | Gets or sets whether the generator is muted: the frames written while it is muted are discarded, and its tracks fire mute (then unmute) in a task. |
| Track | Gets the track of the generator. |
| Writable | Gets the WritableStream to which the scripts write the frames (an object of the realm of the scripts). |
Muted
InsertableStreams.csGets or sets whether the generator is muted: the frames written while it is muted are discarded, and its tracks fire mute (then unmute) in a task.
public bool Muted { get; set; }Property value
See also
Track
InsertableStreams.csGets the track of the generator.
public MediaStreamTrack Track { get; }Writable
InsertableStreams.csGets the WritableStream to which the scripts write the frames (an object of the realm of the scripts).
public object Writable { get; }