VTTRegion

open class VTTRegion(source)

The VTTRegion interface of the WebVTT API describes a portion of the video to render a VTTCue onto.

MDN Reference

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open external var id: String

The id property of the VTTRegion interface is a string that identifies the region.

Link copied to clipboard
open external var lines: Int

The lines property of the VTTRegion interface represents the height of the region, in number of lines.

Link copied to clipboard
open external var regionAnchorX: Double

The regionAnchorX property of the VTTRegion interface represents the x-coordinate of the region anchor, as a percentage of the region's width.

Link copied to clipboard
open external var regionAnchorY: Double

The regionAnchorY property of the VTTRegion interface represents the y-coordinate of the region anchor, as a percentage of the region's height.

Link copied to clipboard
open external var scroll: ScrollSetting

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.

Link copied to clipboard
open external var viewportAnchorX: Double

The viewportAnchorX property of the VTTRegion interface represents the x-coordinate of the viewport anchor, as a percentage of the video's width.

Link copied to clipboard
open external var viewportAnchorY: Double

The viewportAnchorY property of the VTTRegion interface represents the y-coordinate of the viewport anchor, as a percentage of the video's height.

Link copied to clipboard
open external var width: Double

The width property of the VTTRegion interface represents the width of the region, as a percentage of the video's width.