Instance Method

setQueueWithQuery:

Sets a music player’s playback queue based on a media query.

Declaration

- (void)setQueueWithQuery:(MPMediaQuery *)query;

Parameters

query

A media query that specifies the collection of media items that you want as the playback queue. See MPMediaQuery for a description of query types and how to create them.

Discussion

To begin playback after establishing a playback queue, call prepareToPlay.

See Also

Setting Up a Playback Queue

- setQueueWithItemCollection:

Sets a music player’s playback queue using a media item collection.

- setQueueWithStoreIDs:

Sets a music player's playback queue using with media items identified by the store identifiers.

- setQueueWithDescriptor:

Set the music player's playback queue using media items that fit the queue descriptor properties.