I've tried doing this with no luck as well as adding the song to the queue.
Post
Replies
Boosts
Views
Activity
Hi,
Thanks for the response, I already check for Apple Music permissions using the Privacy - Media Library Usage Description in my Info.plist file. I do this check when the app first opens.
Ok, the fix here for me was setting the player.queue = [song] as you suggested, before I attempted to use player.queue.insert(song, position: .afterCurrentEntry`.
Ok, this helps, problem now is that with player.queue.currentEnry I can only access the title property which is the name of the song, way less obvious is the artist name through the subtitle property, and the artwork property. How do I get the album title?
I just confirmed this by running the app on an iOS 16 device so will write a bug report to Apple.