VTTRegion
The VTTRegion interface of the WebVTT API describes a portion of the video to render a VTTCue onto.
Properties
The regionAnchorX property of the VTTRegion interface represents the x-coordinate of the region anchor, as a percentage of the region's width.
The regionAnchorY property of the VTTRegion interface represents the y-coordinate of the region anchor, as a percentage of the region's height.
The scroll property of the VTTRegion interface is an enumerated value indicating how existing cues in the region move when a new cue is added.
The viewportAnchorX property of the VTTRegion interface represents the x-coordinate of the viewport anchor, as a percentage of the video's width.
The viewportAnchorY property of the VTTRegion interface represents the y-coordinate of the viewport anchor, as a percentage of the video's height.