Constructor
new QueueManager(player)
Parameters:
Name | Type | Description |
---|---|---|
player |
shaka.Player |
- Implements:
- Source:
Members
preloadNext_ :?{item: shaka.extern.QueueItem, preloadManager: ?shaka.media.PreloadManager}
Type:
- ?{item: shaka.extern.QueueItem, preloadManager: ?shaka.media.PreloadManager}
- Source:
Methods
configure(config)
Called by the Player to provide an updated configuration any time it
changes.
Parameters:
Name | Type | Description |
---|---|---|
config |
shaka.extern.QueueConfiguration |
- Implements:
- Source:
destroy() → {Promise}
Request that this object be destroyed, releasing all resources and shutting
down all operations. Returns a Promise which is resolved when destruction
is complete. This Promise should never be rejected.
- Overrides:
- Implements:
- Source:
Returns:
- Type
- Promise
getConfiguration() → {shaka.extern.QueueConfiguration}
Returns the current configuration.
- Implements:
- Source:
Returns:
getCurrentItemIndex() → {number}
Returns the index of the current playing item.
- Implements:
- Source:
Returns:
- Type
- number
getItems() → {Array.<shaka.extern.QueueItem>}
Returns all items.
- Implements:
- Source:
Returns:
- Type
- Array.<shaka.extern.QueueItem>
insertItems(itemsnon-null)
Insert new items in the current queue.
Parameters:
Name | Type | Description |
---|---|---|
items |
Array.<shaka.extern.QueueItem> |
- Implements:
- Source:
playItem(itemIndex) → {Promise}
Plays a item number in the queue.
Parameters:
Name | Type | Description |
---|---|---|
itemIndex |
number |
- Implements:
- Source:
Returns:
- Type
- Promise
removeAllItems() → {Promise}
Remove all items.
- Implements:
- Source:
Returns:
- Type
- Promise