Skip to main content

rememberPlaybackProgress

Function rememberPlaybackProgress 

Source
pub fn rememberPlaybackProgress() -> State<PlaybackProgress>
Expand description

Where the open item is, observed for as long as this call stays in the composition.

This recomposes as the position moves, which is what a seek bar and a time label want. A visualiser or a waveform that redraws every frame anyway reads playback_progress during draw instead.