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 VideoTrackGenerator

Remarks

The specification exposes the interface in the dedicated workers only; it is also exposed in the windows.

See also

Constructors

NameDescription
VideoTrackGenerator()Creates a generator and its track (https://w3c.github.io/mediacapture-transform/#dom-videotrackgenerator-videotrackgenerator).

VideoTrackGenerator()

InsertableStreams.cs

Creates a generator and its track (https://w3c.github.io/mediacapture-transform/#dom-videotrackgenerator-videotrackgenerator).

public VideoTrackGenerator()

Properties

NameDescription
MutedGets 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.
TrackGets the track of the generator.
WritableGets the WritableStream to which the scripts write the frames (an object of the realm of the scripts).

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.

public bool Muted { get; set; }

Gets the track of the generator.

public MediaStreamTrack Track { get; }

Gets the WritableStream to which the scripts write the frames (an object of the realm of the scripts).

public object Writable { get; }