Music player stuck on Spotify

I want the music komponent to automatically switch between whichever is the current media app. However if I have preferred music player set to Automatic, it always gets stuck to Spotify no matter which media app is currently playing (specifically Pocketcasts). Even when I close the spotify notification and close out of the spotify app and play the Pocketcasts app, the player still gets stuck on spotify.