OBS Guides

How to Add a Spotify Now Playing Overlay to OBS

Show which Spotify track is playing using an OBS overlay. Check how it updates and control music audio separately.

Headphones on a streaming desk with a song label beside abstract album art

To show the Spotify track and artist in OBS, connect your Spotify account to a Now Playing widget and add its URL as a Browser source. The Sound Alerts Scene Editor requires a Twitch account, and you can use the overlay on other platforms once you have the URL. On Windows, you can add the label as its own OBS source with the NowPlaying Widget plugin. Spotify permits personal playback, so keep its audio out of your live and recording mixes.

I’d build this as a separate source and test with two locally played songs before you go live. You should see the title change in the picture while the soundtrack stays out of the recording.

Connect Spotify to a Sound Alerts scene

Sound Alerts requires a Twitch account to open its Scene Editor. Once you have the source URL, OBS can use the same overlay on other destinations. Use your Spotify sign-in to approve the connection when Sound Alerts sends you to Spotify.

  1. Open the Sound Alerts dashboard and go to Settings > General. Use Connect Spotify.
  2. Open Scene Editor and add a scene just for the song label. Choose Add Widget, find Spotify Now Playing, and add it. If the widget asks you to connect Spotify, complete that step.
Song overlay widget selection showing Spotify Now Playing
Select the song-label widget in the Sound Alerts scene editor.

Keep Spotify playing on that account while you set the size and position. Show Widget When Spotify Is Paused keeps the most recent title visible during a pause. Turn on Disable Chat Notifications if you only want the title in the picture. Click Save, then Copy Source URL. Save a separate Browser source for your existing alerts so you can move the song label on its own.

Spotify Now Playing widget settings for pause and chat notifications
Choose whether to show the last track while paused and whether to send a chat notification.

If you use Windows and want to skip the Sound Alerts account, the NowPlaying Widget plugin reads the player’s Windows media-session data and adds its own OBS source. Confirm that Windows shows your song in its media controls. In release 2.9, choose the _modern build for OBS 33 and newer, or the _legacy build for a supported OBS version up to 32. Close OBS and extract the plugin folder into C:\ProgramData\obs-studio\plugins. For portable OBS, use the _portable package and extract it into the OBS folder.

Open OBS again and choose Sources > + > Now Playing Widget, the plugin’s source name. Play a song in the Spotify desktop app and check that the label shows the right title. You can leave Enable Browser Media Sources? off for the desktop app.

Place the song label in the OBS picture

  1. Choose an OBS scene and add Sources > + > Browser. Name it Spotify Now Playing so you can find it in the source list later.
  2. Leave Local file off. Paste the scene’s source link into URL. Start with the dimensions used in the Sound Alerts scene. The Browser source width and height set the page’s viewport. If you see a cut-off label, check the viewport before you make the text smaller.
  3. Keep the default background CSS. Move the source above your full-frame game or camera layer. In Studio Mode, transition the scene into Program.
  4. For another scene that should show the same label, add the existing source. Keep the Browser source’s shutdown and refresh options off for the first test, then switch scenes and check for a title update.
OBS Browser source for a song-label scene with URL and dimension fields
Match the viewport to the size of the saved Sound Alerts scene.

Place the label where you can read a long title without covering a face, subtitles, or game information. Once you see it in a phone-size preview, give the label space for the full artist name too.

Check playback, then check the recorded audio

Keep the test off-air. With Sound Alerts, you can play Spotify on a separate device with headphones. For the Windows plugin, play Spotify on the computer running OBS so the plugin can read its local media session. If the widget shows a blank title, check Show desktop overlay when using media keys in Spotify, as shown in the plugin’s troubleshooting guide. On Windows, add only the apps you want the audience to hear and disable Desktop Audio if it also carries Spotify. On supported versions of macOS, set macOS Audio Capture to the application you need and check any existing screen capture for a second audio feed.

Record a short clip with a source you want to hear, such as your mic. Change Spotify tracks, then pause. Watch for the next title and the pause behavior you selected. Play the file and listen for your mic and any music that slipped through. If your recording uses a different track from streaming, check which sources feed the streaming track too. Twitch’s music guidelines cover both live and recorded output. The OBS audio guide walks through the mixer and playback checks.

If the stream also needs music people can hear, route licensed music into OBS as a separate source and check that it reaches the intended output.

Fix a blank or stuck song title

What you seeWhat to try
The title is blank in the Scene EditorPlay a track on the exact Spotify account you connected. Verify the account in Sound Alerts and check the widget’s connection prompt.
It works in Sound Alerts and stays blank in OBSRecopy the saved scene’s Source URL, check the Browser source eye and layer order, then use Refresh cache of current page from Properties.
The previous title stays after you change songsCheck first whether the editor receives the new song. If the editor changes, inspect the OBS source and try one refresh. If the editor also stays stuck, check the Spotify connection before changing the OBS layout.
The song keeps appearing in Twitch chatOpen the Spotify widget in the Scene Editor and disable its chat notifications. Save the scene.
You hear music in the recordingCheck whether Desktop Audio, an application source, or another input is carrying Spotify onto the selected track. Take it out of the mix and make another short recording.

If you decide to switch widget providers, you can remove the old app’s access in Spotify. Before taking the new provider live, repeat the two-song check and audio playback.