Instance Method

play()

Begins playback of the current item.

Declaration

func play()

Discussion

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

See Also

Managing Playback

func pause()

Pauses playback of the current item.

var rate: Float

The current playback rate.

var actionAtItemEnd: AVPlayer.ActionAtItemEnd

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.