In order for the volume slider to work with Spotify, you would have to remap the slider to it. Click 'Show Advanced Settings' and scroll down to the 'Playback'. You can do that by making your way to the Preferences window (which you'll find under the 'Spotify' menu on Mac 'Edit' menu on PC). Mac Spotify Volume Not Changing With Controls On Keyboard.