THEOplayer > WebVTTCue
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
Property |
Type |
Description |
---|---|---|
The text alignment of the cue. |
||
|
The content of the cue in raw unparsed form. |
|
The line offset of the cue. |
||
The line alignment of the cue. |
||
The position of the cue. |
||
The position alignment of the cue. |
||
WebVTTRegion |
The region of the cue. |
|
|
The size of the cue's box. |
|
|
Whether snap-to-lines is enabled for the cue. |
|
|
The text of the cue in raw unparsed form. |
|
The writing direction of the cue. |
The text alignment of the cue.
Signature:
align: VTTAlignSetting;
The content of the cue in raw unparsed form.
Signature:
content: string;
The line offset of the cue.
Signature:
line: VTTLine;
The line alignment of the cue.
Signature:
lineAlign: VTTLineAlignSetting;
The position of the cue.
Signature:
position: VTTPosition;
The position alignment of the cue.
Signature:
positionAlign: VTTPositionAlignSetting;
The region of the cue.
Signature:
region: WebVTTRegion | null;
The size of the cue's box.
Signature:
size: number;
- This property is to be interpreted as a percentage of the video, relative to the cue direction stated by WebVTTCue.vertical.
Whether snap-to-lines is enabled for the cue.
Signature:
snapToLines: boolean;
- This property indicates whether WebVTTCue.line is an integer number of lines or a percentage of the dimension of the video.
The text of the cue in raw unparsed form.
Signature:
text: string;
The writing direction of the cue.
Signature:
vertical: VTTDirectionSetting;