Using MusicKit to play a song but not add it to user’s music history

I'm writing an app that lets users authenticate with their Apple Music account and stream songs. However, I’d like to give users the ability to play a song and not have that song appear in their music history. Is there a way to achieve this? Thanks!

Yes. Songs do not need to be in the library in order to play them. To ensure what is played does not appear at all to the user in the Music app, use the ApplicationMusicPlayer.

Using MusicKit to play a song but not add it to user’s music history
 
 
Q