Contents

prepareToPlay()

Prepares a media player for playback.

Declaration

func prepareToPlay()

Discussion

If a media player isn’t 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 play().

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.

See Also

Starting and stopping playback