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