Add Spotify To Sonos App

Add Spotify To Sonos App

  1. Adding Spotify To Sonos App
  2. Spotify Free On Sonos
  3. Spotify On Sonos

Adding your playlists to Sonos

Download and open the Sonos app. Tap More, then Add Music Services. Select Spotify, then Add Account. Enter your Spotify account details. Download and open the Sonos app. Click Add Music Services on the right and select Spotify. Click Next, then Add Account. Enter your Spotify account details. The Sonos app supports pretty much every streaming service known to humanity and lets you build playlists fairly seamlessly from all of them, as well as streaming music stored on your phone, or a.

This page is no longer updated.

See Add playlists on the Sonos developer portal for the latest documentation.

Open up the menu from the top left corner of the screen. Select Add Music Services and you'll be brought to the services list. Using the Sonos Controller app on a computer, you can find the same option in the source browser on the right side of the screen. Visiting friends can now play music on your Sonos system straight from their Spotify app. Build the playlist together, trade-off DJ duties, and add individual tracks to the soundtrack, all from the Spotify app. Hosting the perfect Playlist Potluck just became as simple as getting the right friends over to your place. Go to device that normally uses second sport account. Go into Sonos app.sertings.add services and add Spotify again like it had never been before. Now when go to browse in controller pick Spotify and the top header will have various apotify accounts added as choice to.

Sonos allows users to construct their personal playlists containing individual tracks offered by your on-demand music service. Users may have multiple playlists and may organize their playlists into folders. SMAPI provides API calls to create, delete, rename, and reorder playlists. All playlists must be organized underneath a main playlists container at the root level of your hierarchy. Playlists must be retrievable using getMetadata('playlists') and subsequent getMetadata calls following the hierarchy as desired from there.

You can have two types of playlists for your listeners: Sonos playlists and your playlists.

  • Sonos playlists: Sonos playlists are user-named lists built into the Sonos app for saving songs, albums, and shows in various collections. Listeners manage the Sonos playlists by selecting My Sonos in the lower left of the Sonos app. Listeners add content to their Sonos playlists from the Info View by selecting default actions such as Add Song to Sonos Playlist. Sonos playlists are implemented for you in the Sonos app.
  • Your playlists: You can implement your own service-specific playlists so that your listeners can create and edit playlists saved on your service, just like they do in your app or on your website. Listeners add or remove items from playlists from the Info View by selecting Add to Playlist or Remove from Playlist.

Be sure to configure playlist capability by checking User Content Playlists in your Sonos Labs application, as described in SMAPI capabilities. Playlist enabling provides the listener control to add a track to a playlist. When the listener selects the elipse (...) to display the Info View, the Add to Playlist action is provided automatically for tracks.

This document describes how to set up containers for playlist editing. In addition to setup, your service should handle the following requests for playlist editing. See each request for details.

SMAPI RequestDescription
addToContainerAdds content to a user's playlist.
createContainerCreates a user content playlist on your service.
deleteContainerDeletes a user content playlist from your service.
removeFromContainerRemoves content from a user's playlist.
renameContainerRenames a user content playlist.
reorderContainerEdits the order of a user content playlist.

To enable playlist editing, your service should include a container with an <id> of “playlists” in your root browse menu. Include this container in your responses to any getMetadata requests for “root”. Sonos apps look for a top-level container that has an ID of “playlists”. This container must have two attributes, userContent=true and readonly=false. The <itemType> must be “playlist”.

Your service can add sub-folders to the top-level playlist container to give users more sorting options with their playlists. For example, you could set up a Working Out sub-folder or a House Party sub-folder to allow listeners to organize their playlists accordingly. Listeners can add playlists to sub-folders, but can't create them. This means that your service must set up playlist sub-folders in the hierarchy.

Place playlist sub-folders under the parent playlist container in the hierarchy. These folders must have the userContent attribute set to true and the readOnly attribute set to false. The <itemType> should be container.

A playlist sub-folder looks like this in a getMetadata response:

Sonos uses the getLastUpdate request to check your implementation for changes to your catalog, user-specific content, or content that frequently changes. For example, the Sonos app sends a getLastUpdate request after a user updates any user-specific content, such as playlists. Your service updates the <favorites> token in your getLastUpdate response to report any changes in a user's stored playlists. This tells Sonos apps to refresh any user-specific content such as playlists or favorites. Sonos apps will call getMetadata to refresh their cached data. Sonos apps won't see any changes if your service doesn't make this change. See getLastUpdate for details.

Once you have set up the playlists container, you are ready to implement the Playlist editing SMAPI requests.

Sonos apps send the createContainer request when a user creates a playlist on your service using SMAPI. Implement this method and ensure your service responds to the getLastUpdate request in a timely manner to ensure a good experience. Be sure to implement proper error handling in the naming of a container. The Sonos app limits playlist names to 128 characters but doesn't enforce the validity of those characters. For example, if your system doesn't allow for blank playlist names, you must enforce that in your implementation. Optionally, you can use our custom error mechanism to produce specific error messages that describe the naming error to the listener.

If playlists are editable, they must have the readOnly attribute set to false. If listeners can rename a playlist, set the renameable attribute to true.

Note that the userContent attribute is set to false because users can’t add a playlist container within a playlist. They can only add or remove tracks from a playlist and edit the name. Set the userContent attribute to true for playlist containers, not playlists themselves.

Adding Spotify To Sonos App

Playlists can be editable and not able to be renamed. For example, collaborative playlists could have readOnly set to false and renamable set to false. In this example, a user could edit the playlist, but not be able to change the title.

When listeners select the ellipse (…) to display the Info View for a playlist there are some standard options that Sonos displays. These include choices like Add Playlist to My Sonos, Add to Sonos Playlist, and Play Now.

Your service can add custom actions to the Info View for playlists as well. You can add a related browse option to point users to an artist or genre that's relevant to the playlist they are listening to. You can provide more information about a playlist with the related text action. See Customizing listener actions in the Info View for details.

Listener actions are available for both user-content playlists and any playlists that your service provides for your listeners. You need to contact your developer advocate to enable this capability in production, but you can develop and test by using customSD. See Test your service on Sonos for details.

The <updateId> element in the playlist editing methods is not yet implemented. In the future, we may use <updatedId> to detect data collisions. For example, if two users in the same household both edit a playlist in the same transaction window.

Easily find and play the music you love with Spotify and Sonos. What’s more, you can voice control your tunes with Alexa.

Note: If you can’t find your Sonos speaker in your Spotify Connect list of devices, update your Sonos speaker.

Add

Spotify Free On Sonos

Get started

Mobile and tablet

  1. Download and open the Sonos app.
  2. Tap More, then Add Music Services.
  3. Select Spotify, then Add Account.
  4. Enter your Spotify account details.

Desktop

  1. Download and open the Sonos app.
  2. Click Add Music Services on the right and select Spotify.
  3. Click Next, then Add Account.
  4. Enter your Spotify account details.

Spotify On Sonos

Follow our steps for linking your Spotify account to Alexa

Once you’ve linked your accounts, you can start playing! Connect wirelessly with Spotify Connect or Airplay. Control your tunes with the Spotify app, Sonos app, or with your voice using Alexa.

Need help?

Mobile and tablet

  1. Open the Sonos app.
  2. Tap More, then select Settings.
  3. Tap My Services, then select Spotify.
  4. Tap Remove Account.

Desktop

  1. Open the Sonos app.
  2. Select Manage, then Service Settings.
  3. Select Spotify and click the minus (-) button.

For help setting up and troubleshooting, check out the Sonos support site.

Check out other articles on our support site for help with your Spotify account and payments, listening offline, or if you can’t play music.

Last updated: 01 June, 2020

Community Answers

Unable to connect to sportify through Sonos

Hi!I purchased and installed a sonos play:3 this friday (November 1st). I have used it to listen to Spotify without any (major) problems. However, last night it stopped working.It wasn't able to conen...

More at the Community