Asks the delegate to prepare suggested content for playback.
- iOS 9.0–9.3Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- Media Player
The content manager that initiated the request.
A block to call after content is ready for playback.
The block takes the following parameter:
If you have successfully prepared content for playback, pass
nil. If you cannot prepare content due to an error, pass an
iOS calls this method when the user performs an action that, in context, might indicate intent to begin playing content using your app. For example, if the user frequently listens to audio content in your app with headphones while at a particular location, iOS might call this method upon plugging in headphones when the user is at that location. Your app responds by choosing appropriate content, performing any app-specific actions necessary to prepare the content for playback, and setting the
now property of the shared
MPNow object to indicate to the user that this content is ready to play.
After preparing content for playing, call the provided
completion block with an argument of
nil; or, if your app cannot prepare content, call the completion handler with an
NSError object describing the error.