Class

MusicKit.Queue

An array of media items to be played.

Declaration

interface MusicKit.Queue

Topics

Instance Properties

isEmpty

A Boolean value indicating whether the queue has no items.

items

An array of all the media items in the queue.

length

The number of items in the queue.

nextPlayableItem

The next playable media item in the queue.

position

The current queue position.

previousPlayableItem

The previous playable media item in the queue.

Instance Methods

addEventListener

Add an event listener for a MusicKit queue by name.

append

Inserts the media items defined by the queue descriptor after the last media item in the current queue.

indexForItem

Returns the index in the playback queue for a media item descriptor.

item

Returns the media item located in the indicated array index.

prepend

Inserts the media items defined by the queue descriptor into the current queue immediately after the currently playing media item.

removeEventListener

Removes an event listener for a MusicKit queue by name.

See Also

Playlist Queues

MusicKit.SetQueueOptions

The options to use when setting a music player's playback queue.