Display track title and artist for music, podcasts and any application [Swift]

I'm trying to find a way to access track title and artist information from any background sound, just like the iOS Control Center player (swipe up).

I have a piece of my application that needs to display the track title and artist of any current music playing in the background.

I have tested MPMusicPlayerController at the moment, but I can only get it to ensure the now playing thing of the Music app and not other third party apps like Spotify or Apple's podcast app.

Any idea how I can replicate the control centers' ability to extract now playable items from any music in the application using the audio file play mode?

I am trying to get this to work quickly.

Thank!

+3


source to share





All Articles