Spotify only streams music into other apps through its Web Playback SDK. That has some requirements.
Requirements
- Everyone who wants to hear Spotify needs their own Spotify Premium account and must connect it once. Players without Premium hear nothing for Spotify playlists, but YouTube playlists still work for them.
- Foundry must be opened over
https://, for example on The Forge, behind a reverse proxy with a certificate, or on the host machine athttp://127.0.0.1:30000. Spotify does not accept plainhttp://addresses such ashttp://192.168.x.x:30000. - It works in Chrome, Edge and Firefox. It doesn't work in the Foundry desktop app, because the app lacks the DRM component Spotify needs. Join in a browser instead. Safari support depends on Spotify.
One-time setup by the GM
- Go to https://developer.spotify.com/dashboard and create an app. Tick Web API and Web Playback SDK.
- In the control panel's Spotify section, copy the Redirect URI. It looks like
https://your-foundry/modules/dxcufgbs-scenario-soundtrack/auth/spotify-callback.html. Add it under Redirect URIs in the Spotify app settings. - New Spotify apps start in development mode, where only listed accounts may log in. Under User Management, add the Spotify e-mail of every player (and yourself).
- Copy the app's Client ID into the control panel (or Configure Settings → Dxcufgb's Scenario Soundtracks). No client secret is needed.
Logging in
Each player (and the GM) then clicks the green Spotify button in the Playlists tab bar and logs in. The login is stored in that browser only. Each person's Spotify plays on their own account, so they hear the same playlist but may be on different tracks.
This page mirrors the Scenario Soundtracks wiki on GitHub.