Contents

currentTime()

Returns the current time of the current player item.

Declaration

nonisolated func currentTime() -> CMTime

Return Value

The current time of the current player item.

Discussion

This property isn’t key-value observable. To observe the player’s time, use addPeriodicTimeObserver(forInterval:queue:using:) or addBoundaryTimeObserver(forTimes:queue:using:).

See Also

Observing playback time