Prepares a media player for playback.
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 5.0+
- Media Player
If a media player is not already prepared to play when you call the
play method, that method automatically calls this method. However, to minimize playback delay, call this method before you call
Calling this method may interrupt the media player’s audio session. For information on interruptions and how to respond to them, see Audio Session Programming Guide.