title: Programmed radio playback fails
body: <p>I am trying to build a content service for Sonos and I am having trouble playing tracks. I have managed to set up a very basic SMAPI server and added the Cloud Queue endpoints, and eventually figured out how to make the manifest work. No authentication is involved, and HTTPS is only used for the manifest file since it doesn’t work otherwise.</p>
  <p>Now after I load the custom SD onto the Sonos speaker, it calls <code>getMetadata</code>, <code>getLastUpdate</code>, <code>context</code> and <code>itemWindow</code> and I return the appropriate responses (see JSON below), identical to the ones shown in the Sonos docs. My root <code>mediaCollection</code> is a list of programs, referred to as a programmed radios in the documentation. The tracks I return in the queue contain a <code>mediaUrl</code> which points to my computer so I can track whenever it is used.</p>
  <p>However, the URLs are never used and content is never played on my speaker. If I press play I get the error “Unable to play the selected item” but nothing helpful to figure out what is wrong. I have checked that my media files are supported and appropriate for streaming, and they are but the player never even attempts to access them.</p>
  <p>Any help would be greatly appreciated.</p>
  <p><strong><code>itemWindow</code> response:</strong></p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;queueVersion&quot;: &quot;34612290&quot;,
      &quot;items&quot;: [
          {
              &quot;id&quot;: &quot;21580176&quot;,
              &quot;deleted&quot;: false,
              &quot;track&quot;: {
                  &quot;name&quot;: &quot;Back Together (Dub)&quot;,
                  &quot;album&quot;: {
                      &quot;name&quot;: &quot;Back Together - Single&quot;,
                      &quot;artist&quot;: {
                          &quot;name&quot;: &quot;Jean &amp; Trevor&quot;
                      }
                  },
                  &quot;artist&quot;: {
                      &quot;name&quot;: &quot;Jean &amp; Trevor&quot;
                  },
                  &quot;imageUrl&quot;: &quot;http://192.168.1.38:3040/covers/E9JRtSpc5F2wAARjS.png&quot;,
                  &quot;mediaUrl&quot;: &quot;http://192.168.1.38:3040/tracks/E9JRtSpc5F2wAARjS.m4a&quot;,
                  &quot;durationMillis&quot;: 421700,
                  &quot;contentType&quot;: &quot;audio/mp4&quot;,
                  &quot;id&quot;: {
                      &quot;objectId&quot;: &quot;track_E9JRtSpc5F2wAARjS&quot;
                  }
              }
          },
          {
              &quot;id&quot;: &quot;00291014&quot;,
              &quot;deleted&quot;: false,
              &quot;track&quot;: {
                  &quot;name&quot;: &quot;Bajoo&quot;,
                  &quot;album&quot;: {
                      &quot;name&quot;: &quot;Tropical Bird Club&quot;,
                      &quot;artist&quot;: {
                          &quot;name&quot;: &quot;JaJa&quot;
                      }
                  },
                  &quot;artist&quot;: {
                      &quot;name&quot;: &quot;JaJa&quot;
                  },
                  &quot;imageUrl&quot;: &quot;http://192.168.1.38:3040/covers/kY3kTCKg75GTbTfTQ.png&quot;,
                  &quot;mediaUrl&quot;: &quot;http://192.168.1.38:3040/tracks/kY3kTCKg75GTbTfTQ.m4a&quot;,
                  &quot;durationMillis&quot;: 378000,
                  &quot;contentType&quot;: &quot;audio/mp4&quot;,
                  &quot;id&quot;: {
                      &quot;objectId&quot;: &quot;track_kY3kTCKg75GTbTfTQ&quot;
                  }
              }
          },
          {
              &quot;id&quot;: &quot;00582217&quot;,
              &quot;deleted&quot;: false,
              &quot;track&quot;: {
                  &quot;name&quot;: &quot;La maison où j'ai grandi (Il Ragazzo Della Via Gluck)&quot;,
                  &quot;album&quot;: {
                      &quot;name&quot;: &quot;La maison où j'ai grandi&quot;,
                      &quot;artist&quot;: {
                          &quot;name&quot;: &quot;Françoise Hardy&quot;
                      }
                  },
                  &quot;artist&quot;: {
                      &quot;name&quot;: &quot;Françoise Hardy&quot;
                  },
                  &quot;imageUrl&quot;: &quot;http://192.168.1.38:3040/covers/xucsWSjnPGgwXGbpy.png&quot;,
                  &quot;mediaUrl&quot;: &quot;http://192.168.1.38:3040/tracks/xucsWSjnPGgwXGbpy.m4a&quot;,
                  &quot;durationMillis&quot;: 216000,
                  &quot;contentType&quot;: &quot;audio/mp4&quot;,
                  &quot;id&quot;: {
                      &quot;objectId&quot;: &quot;track_xucsWSjnPGgwXGbpy&quot;
                  }
              }
          },
          ...
      ],
      &quot;includesBeginningOfQueue&quot;: true,
      &quot;includesEndOfQueue&quot;: false
  }
  
  </code></pre>