Instance Method

seekToDate:

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

Declaration

- (BOOL)seekToDate:(NSDate *)date;

Parameters

date

The time to which to seek.

Return Value

YES if the playhead was moved to date, otherwise NO.

Discussion

For playback content that is associated with a range of dates, this method moves the playhead to point within that range. This method will fail (return NO) if date is outside the range or if the content is not associated with a range of dates.

See Also

Moving the Playhead

- stepByCount:

Moves the player item’s current time forward or backward by a specified number of steps.

seekableTimeRanges

An array of time ranges within which it is possible to seek.

- 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 time specified by the date object.

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

- cancelPendingSeeks

Cancels any pending seek requests and invokes the corresponding completion handlers if present.

- seekToTime:

Sets the current playback time to the specified time.

Deprecated
- seekToTime:toleranceBefore:toleranceAfter:

Sets the current playback time within a specified time bound.

Deprecated