libresound_js_libs
    Preparing search index...

    Class Queue

    App's Queue

    Index

    Constructors

    Properties

    helpers: {
        playNext: (
            mis: {
                album: { id?: string; title: string };
                artist: { id?: string; title: string };
                downloaderType: DownloaderType;
                duration: number;
                extension: string;
                id: string;
                subtitle: string;
                thumbnailUrl: string;
                title: string;
            }[],
        ) => void;
    } = ...

    Queue's helpers

    Type Declaration

    • playNext: (
          mis: {
              album: { id?: string; title: string };
              artist: { id?: string; title: string };
              downloaderType: DownloaderType;
              duration: number;
              extension: string;
              id: string;
              subtitle: string;
              thumbnailUrl: string;
              title: string;
          }[],
      ) => void

      Inserts [MusicItem] after current track

    Accessors

    Methods

    • Adds [list] at the end of the queue

      Parameters

      • list: {
            album: { id?: string; title: string };
            artist: { id?: string; title: string };
            downloaderType: DownloaderType;
            duration: number;
            extension: string;
            id: string;
            subtitle: string;
            thumbnailUrl: string;
            title: string;
        }[]

      Returns void

    • Removes items before and after the current track. Only this track will remain

      Returns void

    • Returns [MusicItem] by [index] from the queue

      Parameters

      • index: number

      Returns {
          album: { id?: string; title: string };
          artist: { id?: string; title: string };
          downloaderType: DownloaderType;
          duration: number;
          extension: string;
          id: string;
          subtitle: string;
          thumbnailUrl: string;
          title: string;
      }

    • Inserts [list] at [index] in the queue

      Parameters

      • index: number
      • list: {
            album: { id?: string; title: string };
            artist: { id?: string; title: string };
            downloaderType: DownloaderType;
            duration: number;
            extension: string;
            id: string;
            subtitle: string;
            thumbnailUrl: string;
            title: string;
        }[]

      Returns void

    • Removes a range of elements from the queue. Removes the elements with positions greater than or equal to [start] and less than [end], from the queue.

      Parameters

      • start: number
      • end: number

      Returns void