Contents

currentTime

The current playback time, in seconds, within the audio timeline.

Declaration

var currentTime: TimeInterval { get set }

Discussion

If the sound is playing, this property value is the offset, in seconds, from the start of the sound. If the sound isn’t playing, this property indicates the offset from where playback starts upon calling the play() method.

Use this property to seek to a specific time in the audio data or to implement audio fast-forward and rewind functions.

See Also

Accessing player timing