Instance Method

play

Begins playback of the current item.

Declaration

- (void)play;

Discussion

Calling this method is the same as setting the rate to 1.0.

See Also

Managing Playback

- pause

Pauses playback of the current item.

rate

The current playback rate.

actionAtItemEnd

The action to perform when the current player item has finished playing.

AVPlayerActionAtItemEnd

The actions a player should take when it finishes playing.

- replaceCurrentItemWithPlayerItem:

Replaces the current player item with a new player item.

preventsDisplaySleepDuringVideoPlayback

A Boolean value that indicates whether video playback prevents display and device sleep.