Contents

seekToPosition(_:)

Creates a command that seeks to a specific position in the media.

Declaration

static func seekToPosition(_ action: @escaping (TimeInterval) async throws -> Void) -> MediaCommand

Parameters

  • action:

    The closure the system calls to seek to a position. Receives the target position in seconds.

See Also

Seeking