VTTRegion: VTTRegion() constructor

The VTTRegion() constructor creates a new VTTRegion object instance.

Syntax

js
new VTTRegion()

Parameters

None.

Return value

A new VTTRegion object.

The properties of the returned object are initialized to the following values:

Examples

js
const region = new VTTRegion();
region.width = 50; // Use 50% of the video width
region.lines = 4; // Use 4 lines of height.

Specifications