fraction

fun fraction(anchorEpochMs: Long, playheadWallClockMs: Long, domainMs: Long): Float

Playhead position as a 0..1 fraction of the domain. Uses the smooth epoch wall clock (monotonic across playlist refreshes), NOT the window-relative position that sawtoothed by a segment each refresh.