---
title: endSeeking()
framework: musickit
role: symbol
role_heading: Instance Method
path: musickit/musicplayer/endseeking()
---

# endSeeking()

Ends forward and backward seeking through the music content.

## Declaration

```swift
func endSeeking()
```

## Discussion

Discussion Call this method to end a seek operation that begins when you call either the beginSeekingBackward() or 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.
