logo

THEOplayer > VTTAlignSetting

VTTAlignSetting type

A WebVTT-defined text alignment, represented by a value from the following list:
- 'start': The text of each line is aligned towards the start side of the box.
- 'center': The text of each line is aligned at the center of the box.
- 'end': The text of each line is aligned towards the end side of the box.
- 'left': The text of each line is aligned to the box’s left side for horizontal cues, or top side otherwise.
- 'right': The text of each line is aligned to the box’s right side for horizontal cues, or bottom side otherwise.

Signature:

export type VTTAlignSetting = 'start' | 'center' | 'end' | 'left' | 'right';
github
Make sure to follow us on GitHub!
THEO-logo-white
twitter
facebook
linkedin
Copyright © 2022. All Rights Reserved.
Leuven
New York
Singapore
Barcelona