audio_video_progress_bar icon indicating copy to clipboard operation
audio_video_progress_bar copied to clipboard

Support custom duration formatter

Open MarsWaveX opened this issue 4 months ago • 0 comments

This is an issue to describe what https://github.com/suragch/audio_video_progress_bar/pull/80 does and why we need it.

Sometimes we need more control of how we format the duration, for example, we want format duration to "01:01" style.

And when playing the audio which can not fetch the total duration, like HLS stream which is still being generated, the "total" duration will be "Duration.zero". If we support custom duration formatter, we can give ProgressBar a fake total duration, then format it to "--:--", the UI will be more user-friendly.

Image

The HLS stream audio behind this screenshot is playing.

MarsWaveX avatar Aug 21 '25 13:08 MarsWaveX