setQueue(with:)
Set the music player’s playback queue using media items that fit the queue descriptor properties.
Declaration
func setQueue(with descriptor: MPMusicPlayerQueueDescriptor)Parameters
- descriptor:
A queue descriptor the system uses to add media items to the playback queue.
Discussion
To begin playback after establishing a playback queue, call prepareToPlay().