Class

MPMusicPlayerMediaItemQueueDescriptor

A set of properties and methods used to modify audio media items in the player’s media queue.

Declaration

@interface MPMusicPlayerMediaItemQueueDescriptor : MPMusicPlayerQueueDescriptor

Overview

Use this class to modify the player queue created by a query before the queue begins to play. You can modify when individual items start and stop playing, along with setting the first item to play.

Topics

Creating a New Media Item Queue Descriptor

- initWithItemCollection:

Creates a new queue descriptor using the designated collection.

- initWithQuery:

Creates a new queue descriptor using the designated query.

Media Item Queue Descriptor Properties

itemCollection

Contains the media item collection used to create the queue descriptor.

query

Contains the media items found by the query used to create the queue descriptor.

startItem

Designates the media item that will be played first.

Setting Start and End Times

- setStartTime:forItem:

The time the designated media item is to start playing.

- setEndTime:forItem:

The time the designated media item is to stop playing.

Relationships

See Also

Media Player Queues

MPMusicPlayerControllerQueue

An immutable queue containing the media items to play.

MPMusicPlayerControllerMutableQueue

A mutable queue containing the media items to play.

MPMusicPlayerApplicationController

A media player object that you use to revise the queue that’s currently playing.

MPMusicPlayerStoreQueueDescriptor

A set of properties and methods used to modify items, based on their store identifier, in the player’s queue.

MPMusicPlayerPlayParametersQueueDescriptor

A set of properties and methods used to modify how items are played, based on play parameters returned from MusicKit API results.

MPMusicPlayerQueueDescriptor

The abstract base class for audio media item and store queue descriptors.