interface OmakasePlayerConfig {
    authentication?: AuthenticationData;
    crossorigin?: "anonymous" | "use-credentials";
    detachedPlayer?: boolean;
    detachedPlayerUrl?: string;
    hls?: Partial<HlsConfig>;
    mediaChrome?: MediaChromeVisibility;
    mediaChromeHTMLElementId?: string;
    playerHTMLElementId?: string;
    thumbnailFn?: ((time: number) => undefined | string);
    thumbnailVttUrl?: string;
    vttDownsamplePeriod?: number;
}

Properties

authentication?: AuthenticationData

Authentication data for HLS.js, VTT and thumbnail image requests

crossorigin?: "anonymous" | "use-credentials"
detachedPlayer?: boolean

Is this OmakasePlayer instance a detached player instance. Property is set on detached player.

detachedPlayerUrl?: string

URL where detached player resides. Property is set on non-detached (local) player side.

hls?: Partial<HlsConfig>

HLS.js configuration

mediaChrome?: MediaChromeVisibility

Show player with or without media chrome controls

mediaChromeHTMLElementId?: string
playerHTMLElementId?: string
thumbnailFn?: ((time: number) => undefined | string)

Function to get thumbnail url from time (used for preview in media chrome time range)

thumbnailVttUrl?: string

VTT url for the thumbnails (used for preview in media chrome time range)

vttDownsamplePeriod?: number