playback > skipToPreviousTrack

Use the skipToPreviousTrack command in the playback namespace to skip to the previous track.

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


Endpoint

POST


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.


Response

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 previous track, then your app will receive an ERROR_PLAYBACK_FAILED.

If the player is at the beginning of the queue, your app will get an ERROR_PLAYBACK_NO_CONTENT playbackError.