uamp icon indicating copy to clipboard operation
uamp copied to clipboard

[Feature Request] Don't use polling for updating seekbar

Open nic0lette opened this issue 5 years ago • 0 comments

Currently, NowPlayingFragmentViewModel uses a handler to cause updates to the seekbar and text.

It would be better to listen to the metadata + control callbacks and set an animator on the bar that calculates (duration of song - current position) / playback speed and animates the progress from current to 100% over that duration.

The text could be updated in the seekbar's update callback, which would have the added benefit of the text updating as the position is changed by dragging it.

nic0lette avatar Mar 03 '20 18:03 nic0lette