Instance Property

rate

The current playback rate.

Declaration

@property(nonatomic) float rate;

Discussion

A value of 0.0 pauses the video, while a value of 1.0 plays the current item at its natural rate. Rates other than 0.0 and 1.0 can be used if the associated player item returns YES for the AVPlayerItem properties canPlaySlowForward or canPlayFastForward. Negative rate value ranges are supported if the player item returns YES for the canPlayReverse, canPlaySlowReverse, and canPlayFastReverse properties.

See Also

Managing Playback

play

Begins playback of the current item.

pause

Pauses playback of the current item.

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.