Use the seek command in the playback namespace to go to a specific position in the current track. Optionally add the cloud queue itemId to target a specific track.
Use itemId to ensure the group seeks on the current item. If the current item’s itemId does not match the one provided, the player returns an ERROR_INVALID_OBJECT_ID error.
Responses
400
Success Code: 200 OK
Content Examples:
When including the optional itemId.
JavaScript
{
"positionMillis" : 30000,
"itemId" : "123"
}
When omitting the optional itemId.
JavaScript
{
"positionMillis" : 30000
}
401
A client has not provided authorization credentials to perform a command
403
A client does not have the correct permissions to perform a command
404
Success Code: 200 OK
Content Examples:
When including the optional itemId.
JavaScript
{
"positionMillis" : 30000,
"itemId" : "123"
}
When omitting the optional itemId.
JavaScript
{
"positionMillis" : 30000
}
499
Success Code: 200 OK
Content Examples:
When including the optional itemId.
JavaScript
{
"positionMillis" : 30000,
"itemId" : "123"
}
When omitting the optional itemId.
JavaScript
{
"positionMillis" : 30000
}
500
Sonos has experience an unexpected condition it is unable to recover from