Mobile Locker JavaScript SDK
    Preparing search index...

    Interface VideoOptions

    interface VideoOptions {
        allowAirPlay?: boolean;
        allowedSpeeds?: number[];
        allowFullscreen?: boolean;
        allowPiP?: boolean;
        allowScrubbing?: boolean;
        autoplay?: boolean;
        endTime?: number;
        loop?: boolean;
        muted?: boolean;
        rate?: number;
        showControls?: boolean;
        startTime?: number;
        title?: string;
        videoGravity?: "fill" | "fit" | "stretch";
    }
    Index

    Properties

    allowAirPlay?: boolean

    Allow AirPlay output.

    allowedSpeeds?: number[]

    Allowed playback speeds to offer the user.

    allowFullscreen?: boolean

    Allow full-screen mode.

    allowPiP?: boolean

    Allow Picture-in-Picture mode.

    allowScrubbing?: boolean

    Allow the user to scrub (seek) through the video.

    autoplay?: boolean

    Start playback automatically. Defaults to true in the browser fallback.

    endTime?: number

    Stop playback at this position in seconds.

    loop?: boolean

    Loop the video continuously.

    muted?: boolean

    Start the video muted.

    rate?: number

    Playback speed multiplier (e.g. 1.5 for 1.5× speed).

    showControls?: boolean

    Show the native playback controls.

    startTime?: number

    Start playback from this position in seconds.

    title?: string

    Title to display in the player UI.

    videoGravity?: "fill" | "fit" | "stretch"

    How to fit the video within its display area.