SeekMode

How exact a seek needs to be, traded against how long it takes.

Entries

Link copied to clipboard

Land on a keyframe near the target without decoding forward to it: by default the last one at or before the target, and KeyframeChoice picks another. One decode, always fast, and up to a whole group of pictures away from where you asked.

Link copied to clipboard

Decode forward from the keyframe and land exactly. Costs up to one group of pictures of throwaway decoding, which on a long-GOP 4K file is noticeable.

Link copied to clipboard

Shows the keyframe at once and then refines to the exact frame, which is what a seek bar drag wants: the picture responds immediately and settles a moment later.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): SeekMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.