Enumeration

AVPlayer.ActionAtItemEnd

The actions a player should take when it finishes playing.

Declaration

enum ActionAtItemEnd : Int

Topics

Actions

case advance

The player should advance to the next item, if there is one.

case pause

The player should pause playing.

case none

The player should do nothing.

See Also

Managing Playback

func play()

Begins playback of the current item.

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.

var preventsDisplaySleepDuringVideoPlayback: Bool

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