<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Possible to play local file through API? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5381135#M4568</link>
    <description>&lt;P&gt;You make the exact same request as is shown at the beginning of your first post, except you replace the album URI with a playlist URI.&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2022 09:56:47 GMT</pubDate>
    <dc:creator>Peter_Schorn</dc:creator>
    <dc:date>2022-05-12T09:56:47Z</dc:date>
    <item>
      <title>Possible to play local file through API?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5380791#M4561</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;: Premium&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;: DK&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;: Spotify on Linux Ubuntu (PC)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Hi, I'm playing songs using the Web API like this without issues:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;PUT&lt;/SPAN&gt;&lt;SPAN class=""&gt; /v1/me/player/play HTTP/1.1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;Content-Type:&lt;/SPAN&gt;&lt;SPAN class=""&gt; application/json&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;Authorization&lt;/SPAN&gt;&lt;SPAN class=""&gt;: xxxxx&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;Host&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt; api.spotify.com&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;Content-Length&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;116&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN class=""&gt;"context_uri"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"spotify:album:5ht7ItJgpBH7W6vJ5BqpPr"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;"offset"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;"position"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;5&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;"position_ms"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Is it possible to play a local file (added to a playlist) through the same Web API call by using a different URI e.g. something like:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;"spotify:local:Grandmaster+Flash::The+Message:392"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I got that URI format from checking the playlist where the local song was added.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I'm getting http code 400 and the following error message when trying this:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;"Invalid track uri: spotify:local:Grandmaster+Flash::The+Message:392"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Flemming&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 16:19:22 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5380791#M4561</guid>
      <dc:creator>FLEMMING_jans</dc:creator>
      <dc:date>2022-05-11T16:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to play local file through API?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5380919#M4565</link>
      <description>You cannot play local files using the web API unless they are already in a playlist and you reference them by their index in the playlist.</description>
      <pubDate>Wed, 11 May 2022 21:11:41 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5380919#M4565</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2022-05-11T21:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to play local file through API?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5381046#M4566</link>
      <description>&lt;P&gt;Thanks, that sounds interesting.&lt;/P&gt;&lt;P&gt;Which API call or URI would I use to play a local file by its index?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 06:32:41 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5381046#M4566</guid>
      <dc:creator>FLEMMING_jans</dc:creator>
      <dc:date>2022-05-12T06:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to play local file through API?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5381135#M4568</link>
      <description>&lt;P&gt;You make the exact same request as is shown at the beginning of your first post, except you replace the album URI with a playlist URI.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 09:56:47 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5381135#M4568</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2022-05-12T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to play local file through API?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5382394#M4593</link>
      <description>&lt;P&gt;thanks, it worked using e.g. :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;PUT&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/v1/me/player/play HTTP/1.1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;Content-Type:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;application/json&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;Authorization&lt;/SPAN&gt;&lt;SPAN class=""&gt;: xxxxx&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;Host&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;api.spotify.com&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;Content-Length&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;nnn&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN class=""&gt;"context_uri"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"spotify:playlist:5ht7ItJgpBH7W6vJ5BqpPr"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;"offset"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;"position"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;5&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;"position_ms"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 15 May 2022 18:30:27 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Possible-to-play-local-file-through-API/m-p/5382394#M4593</guid>
      <dc:creator>FLEMMING_jans</dc:creator>
      <dc:date>2022-05-15T18:30:27Z</dc:date>
    </item>
  </channel>
</rss>

