Skip to content

Support caption positioning settings #783

Description

@joedolson

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.

Activity

  1. added this to the 5.2 milestone on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions