issues
search
goldy1992
/
Mp3Player
An open source Android MP3 Player
GNU General Public License v3.0
18
stars
3
forks
source link
Add a fix for the Seekbar to update accurately
#135
Closed
goldy1992
closed
4 years ago
goldy1992
commented
4 years ago
Problem
Data to update the seekbar position arrives in 2 different parts,
metadata
i.e. the song duration
playback state
the current position
This data can arrive in any order at any time, interpreted incorrectly, the wrong position could be given for the wrong song.
Worst case scenario
:
SongA - length 100
SongB - length 1000
SongB's position of 450 is received before the metadata is updated.
Create a
Calculator class
which will deal with the correct calculation of the position and create the appropriate animator.
Problem