Instance Method

prepareToPlay

Prepares a media player for playback.

Required.

Declaration

- (void)prepareToPlay;

Discussion

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 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

- play

Initiates playback of the current item.

Required.

- pause

Pauses playback of the current item.

Required.

- stop

Ends playback of the current item.

Required.

isPreparedToPlay

A Boolean value indicating whether a media player is ready to play.

Required.