Get Now Playing item in MusicPlayer

I cannot find any way to get Now Playing item in ApplicationMusicPlayer or SystemMusicPlayer.

Is there any way to get it? If not, please consider adding a property to access the now playing item. I have also filed a feedback regarding this. FB9192603

Thank you

Answered by Frameworks Engineer in 680254022

Hello @RahulRS,

Thank you very much for the feedback.

We're working on it.

Best regards,

Accepted Answer

Hello @RahulRS,

Thank you very much for the feedback.

We're working on it.

Best regards,

Hello @RahulRS ,

We have made a number of changes to MusicKit's playback API in iOS 15 beta 4.

You can now get information about what is currently playing with ApplicationMusicPlayer.shared.queue.currentEntry and SystemMusicPlayer.shared.queue.currentEntry.

I hope this helps.

Best regards,

Get Now Playing item in MusicPlayer
 
 
Q