Instance Method


Pauses playback of the current item.


func pause()


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

See Also

Managing Playback

func play()

Begins playback of the current item.

var rate: Float

The current playback rate.

var actionAtItemEnd: AVPlayerActionAtItemEnd

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

func replaceCurrentItem(with: AVPlayerItem?)

Replaces the current player item with a new player item.