<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItemIntegratedTimeline/seek(to:toleranceBefore:toleranceAfter:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayerItemIntegratedTimeline(im)seekToTime:toleranceBefore:toleranceAfter:completionHandler:"
  },
  "title" : "seek(to:toleranceBefore:toleranceAfter:completionHandler:)"
}
-->

# seek(to:toleranceBefore:toleranceAfter:completionHandler:)

Seeks to a particular time in the integrated time domain.

```
func seek(to time: CMTime, toleranceBefore: CMTime, toleranceAfter: CMTime, completionHandler: (@Sendable (Bool) -> Void)? = nil)
```

## Parameters

`time`

A time represented in the integrated time domain.

`toleranceBefore`

A tolerance before the target time to allow.

`toleranceAfter`

A tolerance after the target time to allow.

`completionHandler`

A callback the system invokes after the seek completes. It passes a Boolean value of `true` if the playhead moved to the new time.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)