Table of Contents

Class VideoTrackGenerator

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The VideoTrackGenerator interface of the Insertable Streams for MediaStreamTrack API has a WritableStream property that acts as a MediaStreamTrack source, by consuming a stream of VideoFrames as input.
[Value("VideoTrackGenerator")]
public class VideoTrackGenerator
Inheritance
VideoTrackGenerator
Inherited Members

Remarks

Constructors

VideoTrackGenerator()

NOTE
Experimental
The VideoTrackGenerator() constructor creates a new VideoTrackGenerator object which consumes a stream of media frames and exposes a MediaStreamTrack.
public VideoTrackGenerator()

Remarks

Properties

Muted

NOTE
Experimental
The muted Boolean property of the VideoTrackGenerator interface can be used to temporarily halt or resume the generation of video frames in the output track.
[Value("muted")]
public bool Muted { get; set; }

Property Value

bool

A boolean.

Remarks

Track

NOTE
Experimental
The track property of the VideoTrackGenerator interface returns a MediaStreamTrack. VideoFrames written to Writable will be generated in this track.
[Value("track")]
public MediaStreamTrack Track { get; }

Property Value

MediaStreamTrack

A video MediaStreamTrack.

Remarks

Writable

NOTE
Experimental
The writable property of the VideoTrackGenerator interface returns a WritableStream. This allows the writing of VideoFrames to the Track.
[Value("writable")]
public WritableStream Writable { get; }

Property Value

WritableStream

A WritableStream of VideoFrames.

Remarks