# È possibile impostare un iframe di riproduzione automatica di Spotify da un link Spotify?

**URL:** <https://meta.discourse.org/t/is-it-possible-to-set-up-an-automatic-spotify-player-iframe-from-spotify-link/145878>\
**Category:** Product Support\
**Created:** [27 Marzo 2020, 9:38pm UTC](https://meta.discourse.org/t/is-it-possible-to-set-up-an-automatic-spotify-player-iframe-from-spotify-link/145878 "2020-03-27T21:38:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [27 Marzo 2020, 11:49pm UTC](https://meta.discourse.org/t/is-it-possible-to-set-up-an-automatic-spotify-player-iframe-from-spotify-link/145878/2 "2020-03-27T23:49:14Z")

</div>

> [@LofiZone.com](#):
>
> Quando un utente pubblica un link a SoundCloud, l’iframe funziona perfettamente. Tuttavia, sembra che non esista un auto-iframe per le tracce e le playlist di Spotify.

Gli onebox di SoundCloud funzionano egregiamente con Discourse. Per Spotify, se aggiungi un link a una canzone o a una playlist di Spotify in un post di Discourse, viene creato un onebox, ma non un player Spotify.

Puoi consentire agli utenti di aggiungere il codice di incorporamento di Spotify (iframe) ai post di Discourse aggiungendo `https://open.spotify.com/embed/` all’impostazione del sito `allowed iframes` del tuo sito. Questo creerà un player audio che permette agli utenti di ascoltare frammenti di 30 secondi delle tracce.

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-set-up-an-automatic-spotify-player-iframe-from-spotify-link/145878)._
