Back to Content

VideoTrackGenerator: track property

files/en-us/web/api/videotrackgenerator/track/index.md

latest598 B
Original Source

{{APIRef("Insertable Streams for MediaStreamTrack API")}}{{SeeCompatTable}}

The track property of the {{domxref("VideoTrackGenerator")}} interface returns a {{domxref("MediaStreamTrack")}}. {{domxref("VideoFrame")}}s written to {{domxref("VideoTrackGenerator.writable")}} will be generated in this track.

Value

A video {{domxref("MediaStreamTrack")}}.

Examples

See the Insertable Streams for MediaStreamTrack API for an example.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}