Post

Replies

Boosts

Views

Activity

Comment on MPMusicPlayerController style playback for MacOS
I came across this post while searching for a solution to my Mac Catalyst music app not functioning upon upgrading to Sonoma. It seems the MPMusicPlayerController class no longer responds to calls within a SystemMusicPlayer setting, leaving labels displaying song title, artist, etc. blank, and of course, no ability to set queues! It would appear Apple is intent on herding everyone into its pay-to-play MusicKit and leaving tinkerers like me out to dry. Way to go😒
Feb ’24
Comment on MPMusicPlayerController currentPlaybackTime returns 0 on M1 Mac
This is close enough to my solution, just using the playback state instead of a boolean variable. I discovered that when I upgraded to Monterey this month my MPMusicPlayerControllerNowPlayingItemDidChange notification began giving me the same treatment: work once and done, leading to yet another code around. I posted about it here around the time I came across this post. If you have the same problem, please drop a comment about any ideas you might have as well!
Apr ’22