Is your feature request related to a problem? Please describe.
The VTT format supports a series of caption position arguments, e.g. line:20% position:15% align:left, meaning "20% from the top, 15% from the left, left-aligned text", where 50% from the left means that the caption is centered.
These arguments are already available in the cue parsing, but are not used.
Describe the solution you'd like
In caption.js, in AblePlayer.prototype.showCaptions, the data can be fetched as let captionOptions = cues[thisCaption].settings, then the arguments can be transformed into meaningful CSS added to the caption container to adjust positioning.
Describe alternatives you've considered
Instead of directly applying CSS, these could be transformed into representative classes representing specific quadrants of the screen. Practically speaking, supporting more than about 9 or 16 divisions is probably not realistic. It would be less flexible, however.
Is your feature request related to a problem? Please describe.
The VTT format supports a series of caption position arguments, e.g.
line:20% position:15% align:left, meaning "20% from the top, 15% from the left, left-aligned text", where 50% from the left means that the caption is centered.These arguments are already available in the cue parsing, but are not used.
Describe the solution you'd like
In
caption.js, inAblePlayer.prototype.showCaptions, the data can be fetched aslet captionOptions = cues[thisCaption].settings, then the arguments can be transformed into meaningful CSS added to the caption container to adjust positioning.Describe alternatives you've considered
Instead of directly applying CSS, these could be transformed into representative classes representing specific quadrants of the screen. Practically speaking, supporting more than about 9 or 16 divisions is probably not realistic. It would be less flexible, however.