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

# seek(to:)

Requests that the player seek to a specified time.

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

## Parameters

`time`

The time to which to seek.

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

---

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)