Version: 2.67.0

WebVTTCue

THEOplayer > WebVTTCue

WebVTTCue interface

Inherits from TextTrackCue . See parent page for inherited properties and methods.

Represents a cue of a WebVTT text track.

Signature:
export interface WebVTTCue extends TextTrackCue

Properties

Property

Type

Description

align

VTTAlignSetting

The text alignment of the cue.

content

string

The content of the cue in raw unparsed form.

line

VTTLine

The line offset of the cue.

lineAlign

VTTLineAlignSetting

The line alignment of the cue.

position

VTTPosition

The position of the cue.

positionAlign

VTTPositionAlignSetting

The position alignment of the cue.

region

WebVTTRegion

The region of the cue.

size

number

The size of the cue's box.

snapToLines

boolean

Whether snap-to-lines is enabled for the cue.

text

string

The text of the cue in raw unparsed form.

vertical

VTTDirectionSetting

The writing direction of the cue.