Biggo / androidgmeplayer

Old Android video game music player based off GMEPlayerLib
0 stars 0 forks source link

Locking/unlocking the screen breaks the progress bar #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Play a song (NSFe in case it matters)
2. Press the screen lock button to lock the screen (or just wait for the
screen timeout to lock it automatically)
3. Press the screen lock button again to unlock the screen

What is the expected output? What do you see instead?
The progress bar should show the total length of the song and continue to
move as it did before the screen was locked. Instead, it shows "00:00" on
both sides and the slider doesn't move at all. The slider button is stuck
in the position it was at before the screen was locked.

Tapping or moving the slider does cause it to seek to the correct position,
but it seems to recalculate the length of the song before doing so. The
length appears, then the slider jumps all the way to the beginning or the
end (whichever was closer to where you tapped, it seems) and the music
skips to the correct position based on where you tried to move the slider.
After that, the slider doesn't move unless manually set to a different
position. At that point, it finally returns to proper behavior, at least
until the screen locks again.

What version of the product are you using? On what operating system?
0.5.1b

Please provide any additional information below.
To be clear, audio playback continues at all times during the process,
regardless of the oddities in the behavior of the slider. Even when
skipping around causes the slider to look incorrect, the audio does play
from the right position, so it looks like this is purely a presentation issue.

Original issue reported on code.google.com by gulop...@gmail.com on 3 Mar 2010 at 3:20

GoogleCodeExporter commented 9 years ago
Doing a little more testing, it seems to only happen when the progress bar is
actually visible. If I'm not running the UI, or even if it's just hidden on the
screen, it works fine when I go back into the player or show it again. 
Similarly, if
I leave it on the screen, then lock/unlock the screen to cause the bug, I can 
just
hide it and show it again to get it back working properly.

Original comment by gulop...@gmail.com on 3 Mar 2010 at 3:41

GoogleCodeExporter commented 9 years ago
I may not be correctly using the MediaPlayerController widget; I've noticed this
before but will have to figure out why it's behaving this way. May also be an 
issue
with the information provided by the PlayerService.

Original comment by nich.joh...@gmail.com on 3 Mar 2010 at 4:24