Class

MPMusicPlayerPlayParametersQueueDescriptor

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

Declaration

class MPMusicPlayerPlayParametersQueueDescriptor : 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 be played.

Topics

Creating a New Play Parameters Queue Descriptor

init(playParametersQueue: [MPMusicPlayerPlayParameters])

Creates a new queue descriptor using the designated queue of play parameters.

class MPMusicPlayerPlayParameters

The MusicKit parameters that describe items to be played.

Accessing the Play Parameters

var playParametersQueue: [MPMusicPlayerPlayParameters]

An array containing the play parameters returned from querying MusicKit.

var startItemPlayParameters: MPMusicPlayerPlayParameters?

The item identified by the play parameters that is to be played first.

class MPMusicPlayerPlayParameters

The MusicKit parameters that describe items to be played.

Setting Start and End Times

func setStartTime(TimeInterval, forItemWith: MPMusicPlayerPlayParameters)

Sets the time the item with the associated play parameters is to start playing.

func setEndTime(TimeInterval, forItemWith: MPMusicPlayerPlayParameters)

Sets the time the item with the associated play parameters is to stop playing.

Relationships

Conforms To

See Also

Media Player Queues

class MPMusicPlayerControllerQueue

An immutable queue containing the media items to be played by an application queue media player.

class MPMusicPlayerControllerMutableQueue

A mutable queue containing the media items to be played by the media player.

class MPMusicPlayerApplicationController

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

class MPMusicPlayerMediaItemQueueDescriptor

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

class MPMusicPlayerStoreQueueDescriptor

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

class MPMusicPlayerQueueDescriptor

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