Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

410
Visualizações
Spotify embed <iframe> toggle play and pause button

I can't seem to toggle the play button of spotify's iframe programmatically through javascript.

I am currently following this link here but no luck. Though I am very new to javascript and I was only trying to recreate the code provided in the answer/comment section.

I would like to be able to toggle the play button of a track or playlist.

Here are the iframe embed code: Example Playlist:

<iframe style="border-radius:12px" src="https://open.spotify.com/embed/playlist/37i9dQZF1DX3YSRoSdA634?utm_source=generator" width="100%" height="380" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"></iframe>

Example Track:

<iframe style="border-radius:12px" src="https://open.spotify.com/embed/track/4AFwnrH5atiJoAd5xS5QtR?utm_source=generator" width="100%" height="380" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"></iframe>
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda