<!--
{
  "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/seekForward(beginAction:endAction:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Now Playing"
    ],
    "preciseIdentifier" : "s:10NowPlaying12MediaCommandV11seekForward11beginAction03endH0ACyyYaKc_yyYaKctFZ"
  },
  "title" : "seekForward(beginAction:endAction:)"
}
-->

# seekForward(beginAction:endAction:)

Creates a command that fast-forwards through the media.

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

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.

---

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)