@byomakase/omakase-player
    Preparing search index...

    Interface MainMediaLoadOptions

    Configuration provided when loading a main media source via OmakasePlayerApi.loadMainMedia or PlayerApi.loadMainMedia.

    interface MainMediaLoadOptions {
        data?: Record<string, any>;
        dropFrame?: boolean;
        duration?: number;
        ffom?: string;
        fileFormatType?: FileFormatType;
        frameRate?: string | number;
        mainMediaType?: MainMediaType;
        poster?: string;
    }

    Hierarchy

    • Serializable
      • MainMediaLoadOptions
    Index

    Properties

    data?: Record<string, any>

    Arbitrary key-value data provided on media load. Can be used to store values such as DRM tokens.

    dropFrame?: boolean

    Whether the frame rate uses drop-frame counting.

    duration?: number

    Explicit media duration in seconds. Overrides the duration reported by the source.

    ffom?: string

    FFOM (First Frame of Media) timecode string used to offset time display.

    fileFormatType?: FileFormatType

    Explicitly set the file format instead of auto-detecting from the source URL. Takes precedence over mainMediaType for resolving both format and media type.

    frameRate?: string | number

    Media frame rate. Can be a numeric value or a fraction string in the form "numerator/denominator".

    mainMediaType?: MainMediaType

    Explicitly set the media type instead of auto-detecting from the source URL.

    poster?: string

    URL for a poster image displayed before the video starts playing.