Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Queue<TM>

Queue instance of tracks to play

The current playing track is provided in

Queue.current

and not in

Queue[0]

Type parameters

  • TM: object = {}

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Queue<TM>(arrayLength: number): Queue<TM>
  • new Queue<TM>(...items: Track<TM>[]): Queue<TM>

Properties

Optional current

current: Track<TM>

The current playing track

Methods

add

clear

progress

remove

  • remove(position: number, howMany?: number): Queue<TM>
  • Remove tracks by position in queue (excluding current)

    Parameters

    • position: number

      Starting position to delete

    • howMany: number = 1

      How many to delete starting from position

    Returns Queue<TM>

    The queue

Generated using TypeDoc