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

# seek(to:completionHandler:)

Requests that the player seek to a specified date, and to notify you when the seek is complete.

```
nonisolated func seek(to date: Date, completionHandler: @escaping @Sendable (Bool) -> Void)
```

## Parameters

`date`

The time to which to seek.

`completionHandler`

The block to invoke when the seek operation has either been completed or been interrupted. The block takes one argument:

- finished: Indicates whether the seek operation completed.

## Discussion

Use this method to seek the current player item to the specified time and be notified when the operation completes. If the seek request completes without being interrupted (either by another seek request or by any other operation), the completion handler you provide is executed with the `finished` parameter set to <doc://com.apple.documentation/documentation/Swift/true>.

If another seek request is already in progress when you call this method, the completion handler for the in-progress seek request is executed immediately with the `finished` parameter set to <doc://com.apple.documentation/documentation/Swift/false>.

---

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)