Create grids

You can create a display type that shows your container content as a grid in Sonos controllers. You can also display customize the text that appears under the album art in the grid.

Create a container display

In your Integration Submission Form, navigate to the Browse Options page. Once there, you can create a list container display using the Type dropdown field and selecting "Grid."

Configure text

Use the "Text" fields on the Browse Options page to configure the text that appears within the container display. You can configure the following:

  1. Item Text Title - first line of text
  2. Item Text Subtitle - second line of text
  3. Item Text Summary - third line of text

Respond to getMetadata requests

This section goes over the getMetadata requests and responses and how they appear in Sonos controllers.

getMetadata request - root

When a user browses into your service, the Sonos controller sends a getMetadata request to show the root container.

<?xml version="1.0" encoding="UTF-8"?>

getMetadata response - root

You should send back a getMetadata response that includes all top-level containers. The response below only shows the relevant container using the mediaCollection sub-element for the container, which uses the Grid display type we created above.

<?xml version="1.0" encoding="UTF-8"?>
          <ns:title>Listen Now</ns:title>
          <ns:albumArtURI />

Sonos Controller user interface - root

The getMetadata response populates the user interface as shown below.