<?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 iFrame API 'ready' never gets called in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-ready-never-gets-called/m-p/5389950#M4761</link>
    <description>&lt;P&gt;I can't get the 'ready' event to be called. Anyone else is having this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;const onSpotifyLoaded = controller =&amp;gt; {
	controller.addListener('ready', () =&amp;gt; {
		console.log("Player is Ready")
	})
}

window.SpotifyIFrameAPI.createController(playerEl.current, {uri: 'xxx'}, onSpotifyLoaded)

window.onSpotifyIframeApiReady = IFrameAPI =&amp;gt; {
	window.SpotifyIFrameAPI = IFrameAPI
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jun 2022 05:23:33 GMT</pubDate>
    <dc:creator>cbalestra</dc:creator>
    <dc:date>2022-06-04T05:23:33Z</dc:date>
    <item>
      <title>iFrame API 'ready' never gets called</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-ready-never-gets-called/m-p/5389950#M4761</link>
      <description>&lt;P&gt;I can't get the 'ready' event to be called. Anyone else is having this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;const onSpotifyLoaded = controller =&amp;gt; {
	controller.addListener('ready', () =&amp;gt; {
		console.log("Player is Ready")
	})
}

window.SpotifyIFrameAPI.createController(playerEl.current, {uri: 'xxx'}, onSpotifyLoaded)

window.onSpotifyIframeApiReady = IFrameAPI =&amp;gt; {
	window.SpotifyIFrameAPI = IFrameAPI
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 05:23:33 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-ready-never-gets-called/m-p/5389950#M4761</guid>
      <dc:creator>cbalestra</dc:creator>
      <dc:date>2022-06-04T05:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API 'ready' never gets called</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-ready-never-gets-called/m-p/5390075#M4764</link>
      <description>&lt;P&gt;It looks like the first test of that function fails:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;onWindowMessages = (e: MessageEvent): void =&amp;gt; {
    if (e.source === this.iframeElement.contentWindow) {
      if (e.data?.type === 'player_ready') {
        this.onPlayerReady();
      }

      if (e.data?.type === 'playback_update') {
        const playbackState = e.data?.payload;
        this.onPlaybackUpdate(playbackState);
      }
    }
  };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 16:09:59 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-ready-never-gets-called/m-p/5390075#M4764</guid>
      <dc:creator>cbalestra</dc:creator>
      <dc:date>2022-06-04T16:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API 'ready' never gets called</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-ready-never-gets-called/m-p/5405984#M5035</link>
      <description>&lt;P&gt;I'm getting an error in the console to using this API. It could be that I'm misunderstanding the documentation on this. Could Spotify respond?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 16:20:32 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-ready-never-gets-called/m-p/5405984#M5035</guid>
      <dc:creator>rentzy</dc:creator>
      <dc:date>2022-07-16T16:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API 'ready' never gets called</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-ready-never-gets-called/m-p/5405994#M5036</link>
      <description>&lt;P&gt;Just to add I'm getting the message "Failed to load resource: the server responded with a status of 404 (Not Found)" when I place the following code into the file&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;```js&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;window&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;onSpotifyIframeApiReady&lt;/SPAN&gt;&lt;SPAN&gt; = (&lt;/SPAN&gt;&lt;SPAN&gt;IFrameAPI&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;let&lt;/SPAN&gt; &lt;SPAN&gt;element&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getElementById&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"embed-iframe"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;let&lt;/SPAN&gt; &lt;SPAN&gt;options&lt;/SPAN&gt;&lt;SPAN&gt; = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;uri&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"spotify:episode:7makk4oTQel546B0PZlDM5"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;let&lt;/SPAN&gt; &lt;SPAN&gt;callback&lt;/SPAN&gt;&lt;SPAN&gt; = (&lt;/SPAN&gt;&lt;SPAN&gt;EmbedController&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IFrameAPI&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;createController&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;element&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;options&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;callback&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;```&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;window&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;onSpotifyIframeApiReady&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Jul 2022 16:35:37 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-ready-never-gets-called/m-p/5405994#M5036</guid>
      <dc:creator>rentzy</dc:creator>
      <dc:date>2022-07-16T16:35:37Z</dc:date>
    </item>
  </channel>
</rss>

