Help Wizard

Step 1

NEXT STEP

Topics with Label: toggle

Labels

Forum Posts

Important: App review and quota extension waiting times

The Spotify for developers platform helps many bring their ideas to life. Whether it's a short term app helping an artist’s release or something more long term - there is always a chance of success. Things start to grow and then you might also need w...

  • Moderator
  • Moderator
  • pkrds
  • Regular
  • 15442 Views
  • 110 replies
  • 18 likes
  • 15442 Views
  • 110 replies
  • 18 likes

Any way to stop the Spotify player (embed) when the user scrolls the website page?

Does anyone know of a way to stop the Spotify player (embed) when the user scrolls the website page? We have this code working now: // Get a reference to the embed iframe element const spotifyEmbedWindow = document.querySelector('iframe[src*="spotify...

  • Casual Listener
  • ...frame element const spotifyEmbedWindow = document.querySelector('iframe[src*="spotify.com/embed"]').contentWindow; spotifyEmbedWindow.postMessage({command: 'toggle'}, '*');     &n...
  • Galina777
  • Casual Listener
  • 1104 Views
  • 4 replies
  • 1 likes
  • Embed Player
    javascript
    pause music
    stop playing
    toggle
  • 1104 Views
  • 4 replies
  • 1 likes