Instance Method

currentTime

Returns the current time of the current player item.

Declaration

- (CMTime)currentTime;

Return Value

The current time of the current player item.

Discussion

This property is not key-value observable. To observe the player’s time, use addPeriodicTimeObserverForInterval:queue:usingBlock: or addBoundaryTimeObserverForTimes:queue:usingBlock:.

See Also

Managing Time

- seekToTime:

Sets the current playback time to the specified time.

- seekToDate:

Sets the current playback time to the time specified by the date object.

- seekToTime:completionHandler:

Sets the current playback time to the specified time and executes the specified block when the seek operation completes or is interrupted.

- seekToDate:completionHandler:

Sets the current playback time to the specified time and executes the specified block when the seek operation completes or is interrupted.

- seekToTime:toleranceBefore:toleranceAfter:

Sets the current playback time within a specified time bound.

- seekToTime:toleranceBefore:toleranceAfter:completionHandler:

Sets the current playback time within a specified time bound and invokes the specified block when the seek operation completes or is interrupted.