<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NowPlaying",
  "identifier" : "/documentation/NowPlaying/MediaCommand/seekBackward(beginAction:endAction:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Now Playing"
    ],
    "preciseIdentifier" : "s:10NowPlaying12MediaCommandV12seekBackward11beginAction03endH0ACyyYaKc_yyYaKctFZ"
  },
  "title" : "seekBackward(beginAction:endAction:)"
}
-->

# seekBackward(beginAction:endAction:)

Creates a command that rewinds through the media.

```
static func seekBackward(beginAction: @escaping () async throws -> Void, endAction: @escaping () async throws -> Void) -> MediaCommand
```

## Parameters

`beginAction`

The closure the system calls to begin rewinding.

`endAction`

The closure the system calls to end rewinding.

## Discussion

The system calls `beginAction` when the user starts rewinding (for example, by pressing
and holding a rewind button), and calls `endAction` when the user stops. Use these
paired actions to start and stop any rate change or scrubbing behavior.

---

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)