skipToItem command in the
playbackSession namespace to skip to the track with the specified
itemId in a cloud queue and optionally seek and initiate playback. This command requires your app to have either created a new session or joined an existing session, and also loaded a cloud queue on the group with
playOnCompletion to start playing the cloud queue item being loaded, so your app doesn’t have to send an extra
Most of the times your app already has access to the track metadata of the cloud queue item that is being loaded. Use the optional
trackMetadata parameter to provide that information so the group can start playing the track immediately after receiving the
loadCloudQueue command. This optimization improves the user experience by starting playback before the player fetches tracks from the cloud queue server.
This command requires a
sessionId to determine the target of the command. See the Control documentation for details.
See the table below for descriptions of parameters in the body.
||string||The identifier for the track. This is required, but does not need to be a value. If it is an empty string, the group will skip to the beginning of the queue.|
||boolean||(Optional) Start playback after loading.|
||number or string||(Optional) Position within track in milliseconds. If you omit this parameter and send a different
||string||(Optional) An opaque identifier used to indicate the change state of the contents in the cloud queue. For example, if the list of tracks in the cloud queue change, the cloud queue server would change the
||track||(Optional) The target track to play. Entering this value enables the player to load and start playing the track immediately. See the track playback object for the data structure of this object.|
Returns an empty body with a
success value of true if successful. The player generates a
metadataStatus event for the new cloud queue track. If your app is subscribed to the
playbackMetadata namespace, it will receive this event notification. If your app is subscribed to the
playback namespace, it will also receive a
playbackStatus event notification if the playback state was changed.
In the event of a failure, returns a
"name": "Album Name"
"name": "Track Name",
"name": "Artist Name"