Bitmovin Player React Native SDK - v1.21.0
    Preparing search index...

    Interface SubtitleCueLayout

    Normalized cue-box geometry.

    Values reflect native cue data including platform defaults, not only explicitly authored subtitle settings. Omitted fields were not set or not applicable for this cue.

    Android

    interface SubtitleCueLayout {
        line?: SubtitleCueLayoutLine;
        lineAlign?: "start" | "end" | "center";
        position?: number | "auto";
        positionAlign?: "auto" | "center" | "line-left" | "line-right";
        size?: number;
        textAlign?: "start" | "end" | "center" | "left" | "right";
        writingMode?: "vertical-lr" | "vertical-rl";
    }
    Index

    Properties

    Cue position on the axis perpendicular to the text flow.

    For horizontal captions this controls vertical placement:

    • { value: 85, unit: 'percent' } — 85% down the viewport.
    • { value: 12, unit: 'line' } — 12 rendered text-line slots from the edge.
    • { value: 'auto' } — renderer chooses placement.

    For vertical captions this controls horizontal placement.

    lineAlign?: "start" | "end" | "center"

    Which edge of the cue box is anchored at line.

    Does not control text alignment inside the box; see textAlign for that.

    position?: number | "auto"

    Cue box position as a percentage of the viewport on the axis orthogonal to line.

    'auto' defers to the renderer.

    positionAlign?: "auto" | "center" | "line-left" | "line-right"

    Which edge of the cue box is anchored at position.

    size?: number

    Width of the cue box as a percentage of the viewport dimension in the writing direction.

    textAlign?: "start" | "end" | "center" | "left" | "right"

    Text alignment inside the cue box.

    writingMode?: "vertical-lr" | "vertical-rl"

    Writing direction of the cue text; affects how line, position, and size are interpreted. When absent, the cue uses the default horizontal writing direction.