<?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 Addressing autoplay block for slow-loading files in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Addressing-autoplay-block-for-slow-loading-files/m-p/7182636#M18952</link>
    <description>&lt;P&gt;I'm writing an app that lets users play a selection of spotify tracks by clicking on certain links.&amp;nbsp; I'm using the obvious: a click handler that invokes controller.loadUri() followed by controller.play().&amp;nbsp; &amp;nbsp;But if the track is slow to load, I get console errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;"PlaybackError: Cannot perform operation; no list was loaded."&lt;/P&gt;&lt;P&gt;The usual fix is to wait for some kind of load event before calling play.&amp;nbsp; &amp;nbsp;But then play would be invoked outside the click event handler, which would mean that autoplay is blocked and I need to get another click from the user.&lt;BR /&gt;&lt;BR /&gt;Is there a way for me to tell the controller to load and play the track (once loaded) as an atomic operation so I don't need to wait for the load?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Oct 2025 20:33:08 GMT</pubDate>
    <dc:creator>karger</dc:creator>
    <dc:date>2025-10-21T20:33:08Z</dc:date>
    <item>
      <title>Addressing autoplay block for slow-loading files</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Addressing-autoplay-block-for-slow-loading-files/m-p/7182636#M18952</link>
      <description>&lt;P&gt;I'm writing an app that lets users play a selection of spotify tracks by clicking on certain links.&amp;nbsp; I'm using the obvious: a click handler that invokes controller.loadUri() followed by controller.play().&amp;nbsp; &amp;nbsp;But if the track is slow to load, I get console errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;"PlaybackError: Cannot perform operation; no list was loaded."&lt;/P&gt;&lt;P&gt;The usual fix is to wait for some kind of load event before calling play.&amp;nbsp; &amp;nbsp;But then play would be invoked outside the click event handler, which would mean that autoplay is blocked and I need to get another click from the user.&lt;BR /&gt;&lt;BR /&gt;Is there a way for me to tell the controller to load and play the track (once loaded) as an atomic operation so I don't need to wait for the load?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 20:33:08 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Addressing-autoplay-block-for-slow-loading-files/m-p/7182636#M18952</guid>
      <dc:creator>karger</dc:creator>
      <dc:date>2025-10-21T20:33:08Z</dc:date>
    </item>
  </channel>
</rss>

