Instance Method

seekToTime:

Sets the current playback time to the specified time.

Declaration

- (void)seekToTime:(CMTime)time;

Parameters

time

The time to which to seek.

Discussion

The time to which the player is seeked may differ from the specified time for efficiency. For sample accurate seeking see seekToTime:toleranceBefore:toleranceAfter:.

See Also

Managing Time

- currentTime

Returns the current time of the current player item.

- 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.