<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicKit",
  "identifier" : "/documentation/MusicKit/MusicPlayer/endSeeking()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MusicKit"
    ],
    "preciseIdentifier" : "s:8MusicKit0A6PlayerC10endSeekingyyF"
  },
  "title" : "endSeeking()"
}
-->

# endSeeking()

Ends forward and backward seeking through the music content.

```
func endSeeking()
```

## Discussion

Call this method to end a seek operation that begins when you call
either the [`beginSeekingBackward()`](/documentation/MusicKit/MusicPlayer/beginSeekingBackward()) or [`beginSeekingForward()`](/documentation/MusicKit/MusicPlayer/beginSeekingForward())
method.
After calling this method, the player returns to its previous state.
For example, if the entry is playing before seeking begins,
it continues playing from the new playhead position after calling
this method.

---

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)