playback > skipToNextTrack

Use the skipToNextTrack command in the playback namespace to skip to the next track.

Not all audio sources allow multiple tracks. For example, when a group is streaming an Internet radio station, there is no next track to skip to. If you send a skipToNextTrack command when the audio source does not support multiple tracks, your app will receive an ERROR_PLAYBACK_FAILED, but the audio will continue playing.



Request Parameters

There are no request parameters in the body, all of the request parameters are in the header.

This command requires a groupId to determine the target of the command. See the Control documentation for details.


Returns an empty body with a success value of true and generates a metadataStatus event if successful. If your app is subscribed to the playbackMetadata namespace, it will receive this notification.

In the event of a failure, returns a playbackError or a globalError.

For example, if there’s no audio source loaded on the group, or if the audio source loaded does not have a next track, then your app will receive an ERROR_PLAYBACK_FAILED playbackError.

If the player is at the end of the queue and there is no track to skip to, your app will get an ERROR_PLAYBACK_NO_CONTENT playbackError.