What problem does it solve?
Integrate Apple Music catalog search, in-app playback, subscription checks, and Now Playing metadata so apps can offer native-quality music experiences without modifying the user's global Music app state.
Core Features & Use Cases
- Catalog search and discovery: Query the Apple Music catalog and present searchable results with artwork and metadata.
- App-scoped playback and queue management: Use ApplicationMusicPlayer for app-scoped playback, build and manipulate queues, and handle skips, inserts, and scrub events.
- Subscription and entitlement handling: Detect Apple Music subscription state and surface subscription offers when necessary.
- Now Playing and remote control integration: Publish metadata to MPNowPlayingInfoCenter and register controls with MPRemoteCommandCenter for Lock Screen and CarPlay interactions.
- Use Case: Add an in-app music search UI that lets subscribed users preview, queue, and play songs while updating Lock Screen artwork and responding to AirPods and CarPlay controls.
Quick Start
Play a searched Apple Music song in-app, check the user's subscription, set the ApplicationMusicPlayer queue, and update Now Playing metadata.