Instance Method

setQueue

Sets a music player's playback queue using queue options.

Declaration

Promise setQueue(MusicKit.SetQueueOptions options);

Parameters

options

The option used to set the playback queue.

Return Value

Returns the current playback queue.

Discussion

This method returns a promise with an instance of the set music player's playback queue.

Because we cannot programatically differentiate between an album or a song from the content identifier, the declaritive markup assumes album, unless specified with the data-apple-music-media-type attribute.