I made a SwiftUI app (Album Player) to play music from the music library using the Media Player Framework (MPMusicPlayerController.applicationMusicPlayer). On iPhone and iPad it works fine, the application music player works independent from the system music player.
I made the app available for Mac (macOS 11). But when I try to play music, the Apple Music App is activated and takes-over the playing of the music. It acts like I am using the systemMusicPlayer.
I also tested the iPad version with macOS M1 and there I have the same problem.
According to the documentation it should work:
MPMusicPlayerController
Overview
An application music player plays music locally within your app.
It is not aware of the Music app’s now-playing item, nor does it affect the Music app’s state.
During testing Big Sur beta, I reported the problem to Apple. But no reaction until now.
Anyone has any idea’s?
I made the app available for Mac (macOS 11). But when I try to play music, the Apple Music App is activated and takes-over the playing of the music. It acts like I am using the systemMusicPlayer.
I also tested the iPad version with macOS M1 and there I have the same problem.
According to the documentation it should work:
MPMusicPlayerController
Overview
An application music player plays music locally within your app.
It is not aware of the Music app’s now-playing item, nor does it affect the Music app’s state.
During testing Big Sur beta, I reported the problem to Apple. But no reaction until now.
Anyone has any idea’s?