---
title: "seek(to:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayer/seek(to:)-87h2r"
---

# seek(to:)

Requests that the player seek to a specified time.

## Declaration

```swift
nonisolated func seek(to time: CMTime)
```

## Parameters

- `time`: The time to which to seek.

## Mentioned in

Controlling the transport behavior of a player Presenting chapter markers

## Discussion

Discussion The time to which the player seeks may differ from the specified requested time for efficiency. For sample accurate seeking see seek(to:toleranceBefore:toleranceAfter:).

## See Also

### Seeking through media

- [seek(to:completionHandler:)](avfoundation/avplayer/seek(to:completionhandler:)-75bls.md)
- [seek(to:toleranceBefore:toleranceAfter:)](avfoundation/avplayer/seek(to:tolerancebefore:toleranceafter:).md)
- [seek(to:toleranceBefore:toleranceAfter:completionHandler:)](avfoundation/avplayer/seek(to:tolerancebefore:toleranceafter:completionhandler:).md)
- [seek(to:)](avfoundation/avplayer/seek(to:)-9h9qr.md)
- [seek(to:completionHandler:)](avfoundation/avplayer/seek(to:completionhandler:)-wr1l.md)
