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

    Interface OmakaseTrackApi

    interface OmakaseTrackApi {
        utils: TrackUtilsApi;
        add(track: Track): Track;
        delete(id: string): boolean;
        find(
            predicate?: (
                value: Track,
                index: number,
                array: Track<TrackState, OmpEvent<any, any>>[],
            ) => unknown,
        ): Track<TrackState, OmpEvent<any, any>>[];
        findFirst(
            predicate?: (
                value: Track,
                index: number,
                array: Track<TrackState, OmpEvent<any, any>>[],
            ) => unknown,
        ): Track<TrackState, OmpEvent<any, any>> | undefined;
        get(id: string): Track<TrackState, OmpEvent<any, any>> | undefined;
        load(
            source: Source,
            loadOptions?: TrackLoadOptions,
        ): Observable<Track<TrackState, OmpEvent<any, any>>>;
        load(
            url: string,
            loadOptions?: TrackLoadOptions,
        ): Observable<Track<TrackState, OmpEvent<any, any>>>;
    }

    Hierarchy

    • OmakaseTrackCommonApi
      • OmakaseTrackApi
    Index

    Properties

    Methods

    Properties

    Utility helpers for working with tracks.

    Methods

    • Removes the track with the given ID.

      Parameters

      • id: string

        The unique identifier of the track to remove.

      Returns boolean

      true if the track was found and removed, false otherwise.