seekForward(beginAction:endAction:)
Creates a command that fast-forwards through the media.
Declaration
static func seekForward(beginAction: @escaping () async throws -> Void, endAction: @escaping () async throws -> Void) -> MediaCommandParameters
- 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.