logo

THEOplayer > VTTLine

VTTLine type

A WebVTT-defined line offset, represented by a value from the following list:
- a number: The line offset is expressed in a number of text lines or a percentage of the video viewport height or width.
- 'auto': The line offset depends on the other showing tracks.

Signature:

export type VTTLine = number | 'auto';

Remarks


- The semantics of the number variant are dependent on WebVTTCue.snapToLines.

github
Make sure to follow us on GitHub!
THEO-logo-white
twitter
facebook
linkedin
Copyright © 2022. All Rights Reserved.
Leuven
New York
Singapore
Barcelona