PlayheadState

The playhead and the length it runs against, for a scrubber to draw.

Built by rememberPlayheadState, which keeps it fed from the player.

Properties

Link copied to clipboard

The loaded composition's length, or null while nothing is loaded.

Link copied to clipboard

Where the playhead is, on the tick grid it was collected at.

Link copied to clipboard

position over duration in 0f..1f, and zero while the length is unknown.

Functions

Link copied to clipboard

Hands the playhead out as a lambda, to be called from a layout or draw lambda.