Possible to determine if song supports lossless, spatial audio?

Given an MPMediaItem the user selected from MPMediaPickerController or from MPMusicPlayerController.systemMusicPlayer.nowPlayingItem, is it possible to find out if this song is lossless and if it supports Spatial Audio? Thanks!

Answered by Frameworks Engineer in 716511022

Hello @Jordan,

We have updated MusicKit in iOS 16 beta 1 with a few related APIs:

These additions fill the gap you originally inquired about in this thread.

Most of our new efforts for Apple platform SDKs are focused on MusicKit, so we have decided not to release corresponding new APIs in the Media Player framework.

You can find more information about these new MusicKit APIs and many other in our new WWDC22 session video: Explore more content with MusicKit.

I hope this helps.

Best regards,

Hello @Jordan,

Information about whether a song is lossless or if it supports spatial audio is not exposed in MPMediaItem or MPMusicPlayerController's nowPlayingItem.

If having access to this information would enable new interesting use-cases in your app, please submit this idea as a feature request on Feedback Assistant with any relevant background information.

Best regards,

Accepted Answer

Hello @Jordan,

We have updated MusicKit in iOS 16 beta 1 with a few related APIs:

These additions fill the gap you originally inquired about in this thread.

Most of our new efforts for Apple platform SDKs are focused on MusicKit, so we have decided not to release corresponding new APIs in the Media Player framework.

You can find more information about these new MusicKit APIs and many other in our new WWDC22 session video: Explore more content with MusicKit.

I hope this helps.

Best regards,

How do we know if the device supports Lossless Audio from Settings -> Music -> Audio Quality -> Lossless. Is there a flag in an Apple SDK that can tell us and based on that we can show the Lossless glyph or not.

Possible to determine if song supports lossless, spatial audio?
 
 
Q