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

# seekForward(beginAction:endAction:)

Creates a command that fast-forwards through the media.

## Declaration

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

## Parameters

- `beginAction`: The closure the system calls to begin fast-forwarding.
- `endAction`: The closure the system calls to end fast-forwarding.

## Discussion

Discussion The system calls beginAction when the user starts fast-forwarding (for example, by pressing and holding a fast-forward 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)
- [seekBackward(beginAction:endAction:)](nowplaying/mediacommand/seekbackward(beginaction:endaction:).md)
