<!--
{
  "availability" : [
    "iOS: 4.0.0 - 11.0.0",
    "iPadOS: 4.0.0 - 11.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.7.0 - 10.13.0",
    "tvOS: 9.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItem/seek(to:)-1dpto",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayerItem(im)seekToTime:"
  },
  "title" : "seek(to:)"
}
-->

# seek(to:)

Sets the current playback time to the specified time.

```
@MainActor func seek(to time: CMTime)
```

## Parameters

`time`

The time to which to seek.

## Discussion

The time seeked to may differ from the specified time for efficiency. For sample accurate seeking see [`seek(to:toleranceBefore:toleranceAfter:)`](/documentation/AVFoundation/AVPlayerItem/seek(to:toleranceBefore:toleranceAfter:)).

## See Also

[`seek(to:toleranceBefore:toleranceAfter:completionHandler:)`](/documentation/AVFoundation/AVPlayerItem/seek(to: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.

[`seek(to:completionHandler:)`](/documentation/AVFoundation/AVPlayerItem/seek(to:completionHandler:)-91gnw)

Sets the current playback time to the specified time.



---

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)