Instance Property


The current playback position, in seconds.


var currentPosition: TimeInterval { get set }


You can set the currentPosition of the player while the player is playing, in which case playback will resume at the new time.

See Also

Playing Content

func prepareToPlay()

Prepares to play the sequence by prerolling all events.

var isPlaying: Bool

A Boolean value that indicates whether the sequence is playing.

func stop()

Stops playing the sequence.

var duration: TimeInterval

The length of the currently loaded file, in seconds.

var rate: Float

The playback rate of the player.