interface OmakasePlayerApi {
    get alerts(): AlertsApi;
    get audio(): AudioApi;
    get EVENTS(): OmakasePlayerEventsMappingType<OmakasePlayerEventMap>;
    get subtitles(): SubtitlesApi;
    get timeline(): undefined | TimelineApi;
    get video(): VideoApi;
    createMarkerList(config: MarkerListConfig): Observable<MarkerListApi>;
    createTimeline(config: Partial<ConfigWithOptionalStyle<TimelineConfig>>): Observable<TimelineApi>;
    destroy(): void;
    emit<K>(eventKey: K, event: OmakasePlayerEventMap[K]): void;
    listenerCount<K>(eventKey: K): void;
    listeners<K>(eventKey: K): OmakaseEventListener<OmakasePlayerEventMap[K]>[];
    loadVideo(videoSourceUrl: string, frameRate: string | number): Observable<Video>;
    loadVideo(videoSourceUrl: string, frameRate: string | number, options?: VideoLoadOptions): Observable<Video>;
    off<K>(eventKey: K, handler: OmakaseEventListener<OmakasePlayerEventMap[K]>): void;
    on<K>(eventKey: K, handler: OmakaseEventListener<OmakasePlayerEventMap[K]>): void;
    once<K>(eventKey: K, handler: OmakaseEventListener<OmakasePlayerEventMap[K]>): void;
    removeAllListeners<K>(eventKey?: K): void;
    setAuthentication(authentication: AuthenticationData): void;
    setThumbnailVttUrl(thumbnailVttUrl: string): void;
}

Hierarchy (view full)

Implemented by

Accessors

Methods

  • Type Parameters

    • K extends
          | (keyof VideoEventMap)
          | "omakaseAudioSwitched"
          | (keyof SubtitlesEventMap)
          | (keyof TimelineEventMap)
          | (keyof MarkerListEventMap)

    Parameters

    Returns void

  • Type Parameters

    • K extends
          | (keyof VideoEventMap)
          | "omakaseAudioSwitched"
          | (keyof SubtitlesEventMap)
          | (keyof TimelineEventMap)
          | (keyof MarkerListEventMap)

    Parameters

    • eventKey: K

    Returns void

  • Type Parameters

    • K extends
          | (keyof VideoEventMap)
          | "omakaseAudioSwitched"
          | (keyof SubtitlesEventMap)
          | (keyof TimelineEventMap)
          | (keyof MarkerListEventMap)

    Parameters

    • eventKey: K

    Returns OmakaseEventListener<OmakasePlayerEventMap[K]>[]

  • Type Parameters

    • K extends
          | (keyof VideoEventMap)
          | "omakaseAudioSwitched"
          | (keyof SubtitlesEventMap)
          | (keyof TimelineEventMap)
          | (keyof MarkerListEventMap)

    Parameters

    Returns void

  • Type Parameters

    • K extends
          | (keyof VideoEventMap)
          | "omakaseAudioSwitched"
          | (keyof SubtitlesEventMap)
          | (keyof TimelineEventMap)
          | (keyof MarkerListEventMap)

    Parameters

    Returns void

  • Type Parameters

    • K extends
          | (keyof VideoEventMap)
          | "omakaseAudioSwitched"
          | (keyof SubtitlesEventMap)
          | (keyof TimelineEventMap)
          | (keyof MarkerListEventMap)

    Parameters

    Returns void

  • Type Parameters

    • K extends
          | (keyof VideoEventMap)
          | "omakaseAudioSwitched"
          | (keyof SubtitlesEventMap)
          | (keyof TimelineEventMap)
          | (keyof MarkerListEventMap)

    Parameters

    • OptionaleventKey: K

    Returns void

  • Set authentication for HLS.js, VTT and thumbnail image requests

    Parameters

    • authentication: AuthenticationData

      Basic authentication, Bearer token authentication or custom authentication function

    Returns void