Announcements

Help Wizard

Step 1

NEXT STEP

Topics with Label: pause music

Labels

Forum Posts

Welcome to the Spotify for Developers board!

Welcome to the Spotify for Developers board! This forum is the place for conversations about Spotify's Web API, Web Playback SDK, Widgets, and other developer tools. Here you can ask questions about the Spotify platform, chat with other developers, a...

  • Spotify
  • Spotify
  • 22599 Views
  • 0 replies
  • 61 likes
  • Discussion
  • 22599 Views
  • 0 replies
  • 61 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
  • 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 i...
  • sushants
  • Casual Listener
  • 330 Views
  • 1 replies
  • 1 likes
  • Embed Player
    javascript
    pause music
    stop playing
    toggle
  • 330 Views
  • 1 replies
  • 1 likes