---
title: "seekBackward(beginAction:endAction:)"
framework: nowplaying
role: symbol
role_heading: Type Method
path: "nowplaying/mediacommand/seekbackward(beginaction:endaction:)"
---

# seekBackward(beginAction:endAction:)

Creates a command that rewinds through the media.

## Declaration

```swift
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

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.

## See Also

### Seeking

- [seekToPosition(_:)](nowplaying/mediacommand/seektoposition(_:).md)
- [seekForward(beginAction:endAction:)](nowplaying/mediacommand/seekforward(beginaction:endaction:).md)
