Hosanna UI API v2.3.0-next
    Preparing search index...

    Interface IVideoCaptionRenderArea

    Caption boundaries and scaling, available on Roku OS 15.3 and later.

    interface IVideoCaptionRenderArea {
        height?: number;
        keepSafeMargins?: boolean;
        mode?: "fullscreen" | "auto" | "override";
        overridePlacement?: boolean;
        scaleFonts?: "off" | "by-width" | "by-height";
        width?: number;
        x?: number;
        y?: number;
    }
    Index

    Properties

    height?: number
    keepSafeMargins?: boolean

    Defaults to false in override mode and true in the other modes.

    mode?: "fullscreen" | "auto" | "override"

    Defaults to fullscreen. Only override mode uses the explicit rectangle.

    overridePlacement?: boolean

    Defaults to true in override mode and false in the other modes.

    scaleFonts?: "off" | "by-width" | "by-height"

    Defaults to by-width.

    width?: number
    x?: number

    Rectangle in pixels, relative to the video position in the UI.

    y?: number