<?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 for Tracks (not podcasts) in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5361317#M4303</link>
    <description>&lt;P&gt;Hi Spotify Team!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;With the release of&amp;nbsp;the iFrame API for podcasts, I was wondering if there's anything similar for non-podcasts, such as individual music tracks, or if there's anything planned down the line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 20:06:02 GMT</pubDate>
    <dc:creator>yaoguais</dc:creator>
    <dc:date>2022-04-01T20:06:02Z</dc:date>
    <item>
      <title>iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5361317#M4303</link>
      <description>&lt;P&gt;Hi Spotify Team!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;With the release of&amp;nbsp;the iFrame API for podcasts, I was wondering if there's anything similar for non-podcasts, such as individual music tracks, or if there's anything planned down the line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 20:06:02 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5361317#M4303</guid>
      <dc:creator>yaoguais</dc:creator>
      <dc:date>2022-04-01T20:06:02Z</dc:date>
    </item>
    <item>
      <title>Bug/Issue Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5385166#M4650</link>
      <description>&lt;P&gt;&lt;A href="https://developer.spotify.com/documentation/embeds/" target="_blank" rel="noopener"&gt;Embeds Intro Page&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;Using an Embed, you can add a podcast, an album, or other audio content on your website that your users can listen to. It's a great way to promote your music, share your new podcast episodes with fans, or highlight your favorite album or playlist.&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If the intention is to be able to play music tracks, why are non podcast URIs rejected in the iframe code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source ball:&amp;nbsp;&lt;A href="https://open.scdn.co/cdn/build/embed-iframe-api-v1.f175fcd3.js" target="_blank"&gt;https://open.scdn.co/cdn/build/embed-iframe-api-v1.f175fcd3.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Function: "loadUri"&lt;/P&gt;&lt;P&gt;Error: "embed-iframe-api-v1.f175fcd3.js:formatted:1310 Uncaught Error: spotify:track:4fpxnJGDWFxjGvLJOqPPt8 is not a valid Spotify podcast URI."&lt;/P&gt;&lt;P&gt;Cause:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;T(this, "loadUri", (function(e) {
    if (e !== f.currentUri) {
        var t = a().from(e);
        if (!t || t.type !== a().Type.EPISODE &amp;amp;&amp;amp; t.type !== a().Type.SHOW)
            throw new Error("".concat(e, " is not a valid Spotify podcast URI."));
        f.loading = !0;
        var r = "".concat(f.host, "/embed-podcast/").concat(t.type, "/").concat(t.getBase62Id());
        if (f.options.startAt) {
            var n = parseInt(f.options.startAt, 10);
            isNaN(n) || (r += "?t=".concat(n))
        }
        f.iframeElement.src=r
    }
}
)),&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 02:09:19 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5385166#M4650</guid>
      <dc:creator>dderiso</dc:creator>
      <dc:date>2022-05-23T02:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5385186#M4653</link>
      <description>&lt;P&gt;Looking deeper, it seems like tracks use embed-legacy.js, which doesn't share the same code as the podcast's embed.js. Further, command messages are passed to the iFrame using contentWindow.postMessage, which seems to have issues where the iFrame does not receive and/or act on the messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd avoid this API until the dev team posts some updates.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 04:14:13 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5385186#M4653</guid>
      <dc:creator>dderiso</dc:creator>
      <dc:date>2022-05-23T04:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5395244#M4890</link>
      <description>&lt;P&gt;any news on this subject ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2022 18:59:08 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5395244#M4890</guid>
      <dc:creator>g_shiit</dc:creator>
      <dc:date>2022-06-18T18:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5408581#M5095</link>
      <description>&lt;P data-unlink="true"&gt;I've been wondering the same. In your &lt;A href="https://developer.spotify.com/documentation/embeds/guides/using-the-iframe-api/" target="_blank" rel="noopener"&gt;dev guides&lt;/A&gt;&amp;nbsp;you advice us to use the code below. But as soon as you use a track URI (f.e. &lt;FONT color="#008000"&gt;spotify:track:2hKdd3qO7cWr2Jo0Bcs0MA&lt;/FONT&gt;), it doesn't work anymore. Seems like we need to replace the script source. Would be great if the correct one could be provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt; &lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://open.spotify.com/embed-podcast/iframe-api/v1" target="_blank" rel="noopener"&gt;https://open.spotify.com/embed-podcast/iframe-api/v1&lt;/A&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;async&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt; &lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"text/javascript"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &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;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; &amp;nbsp; &amp;nbsp; &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; &amp;nbsp; &amp;nbsp; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;width&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'60%'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;height&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'200'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;uri: 's&lt;FONT color="#008000"&gt;potify:episode:3jv36updcfHw2rBFwZCcVu&lt;/FONT&gt;'&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Jul 2022 22:25:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5408581#M5095</guid>
      <dc:creator>BealeSnow</dc:creator>
      <dc:date>2022-07-22T22:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5413374#M5189</link>
      <description>&lt;P&gt;Same issue here, the docs do mention support for track, album, playlist embeds, but only the podcast use-case is shown. Without a documented alternative to the&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A href="https://open.spotify.com/embed-podcast/iframe-api/v1" target="_blank" rel="noopener nofollow noreferrer"&gt;https://open.spotify.com/embed-podcast/iframe-api/v1&lt;/A&gt;&lt;SPAN&gt;" script for non-podcast content this API is unfortunately misleading and unusable.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 13:00:07 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5413374#M5189</guid>
      <dc:creator>mkmuzikorad1</dc:creator>
      <dc:date>2022-08-04T13:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bug/Issue Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5443792#M6730</link>
      <description>&lt;P&gt;Faced the same issue in my project. Had to go back to web embeds(direct iframe elements) but they dont have a controller. Moreover autoplay not working on them.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 05:21:51 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5443792#M6730</guid>
      <dc:creator>kunal-dev</dc:creator>
      <dc:date>2022-10-13T05:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5462141#M7143</link>
      <description>&lt;P&gt;I'm facing the same issue and would like to use tracks instead of podcasts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 15:14:32 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5462141#M7143</guid>
      <dc:creator>fredyb97</dc:creator>
      <dc:date>2022-11-24T15:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5470064#M7288</link>
      <description>&lt;P&gt;I'm in the middle of teaching a class and a bunch of the students wanted to also use the iframe API. Sadness.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Incase anyone else is stuck you can still embed dynamically using the oembed way&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    const music = document.getElementById("music");

      function changeSong(url) {
        fetch(`https://open.spotify.com/oembed?url=${url}`)
          .then((response) =&amp;gt; response.json())
          .then((data) =&amp;gt; {
            console.log(data);
            music.innerHTML = data.html;
          });
      }

changeSong(YOURSONGURLHERE)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 01:05:15 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5470064#M7288</guid>
      <dc:creator>magic6435</dc:creator>
      <dc:date>2022-12-08T01:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5475751#M7402</link>
      <description>&lt;P&gt;Unfortunately, the docs don't say that we can use the iFrame API for anything other than podcasts. The page says:&lt;/P&gt;&lt;BLOCKQUOTE&gt;Using an&amp;nbsp;&lt;STRONG&gt;embed&lt;/STRONG&gt;, you can add a podcast, an album, or other audio content on your website that your users can listen to.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And later says:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;Using our&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;A href="https://developer.spotify.com/documentation/embeds/guides/using-the-iframe-api/" target="_blank"&gt;iFrame API&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, you can create web apps that dynamically load, play and pause &lt;STRONG&gt;Spotify podcast episodes&lt;/STRONG&gt; in an Embed.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;i.e. embedding a normal iFrame (without play, seek, etc controls) is for any spotify content, but the iFrame API is only for podcast episodes.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2022 23:53:23 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5475751#M7402</guid>
      <dc:creator>lachlansleight</dc:creator>
      <dc:date>2022-12-18T23:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5512004#M8117</link>
      <description>&lt;P&gt;Bumping an old thread but this seems to be possible now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;button&lt;/SPAN&gt; &lt;SPAN&gt;data-spotify-id&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;spotify:track:15Pb9zPDU8AIhvXVxBFuwr&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Play the track&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;button&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 Feb 2023 23:45:24 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5512004#M8117</guid>
      <dc:creator>locii</dc:creator>
      <dc:date>2023-02-26T23:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: iFrame API for Tracks (not podcasts)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5570957#M9005</link>
      <description>&lt;P&gt;Hi, I have an embed iframe where I set the srcdoc to be the embed I get from the endpoint based on a tracksID, but playback on the iframe is still not working, gives a 503, and if I click the link it queries it says 'no token'. That being said is there any way to have a track embed playback work?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:48:12 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iFrame-API-for-Tracks-not-podcasts/m-p/5570957#M9005</guid>
      <dc:creator>jakebaldwin17</dc:creator>
      <dc:date>2023-04-27T13:48:12Z</dc:date>
    </item>
  </channel>
</rss>

