Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

523
Vistas
How to autoplay an embedded spotify playlist?

In my web-app, I've embedded a spotify playlist.Now, all I want is to autoplay the playlist when the website opens or let's say when user clicks the "play" button on my website and not on the Spotify's iframe. The code for the same is:

<!DOCTYPE html>
<html>
<body>

<iframe src="https://open.spotify.com/embed/playlist/37i9dQZF1EJEjtwRUdhPUX?utm_source=generator&theme=0" width="100%" height="80" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"></iframe>
<script>
document.querySelector('[title="Play"]').click()
</script>
</body>
</html>

The link for JS Fiddle is JS_Fiddle

I know the question is being asked before but none of the solution seems to work!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda