PlayerPiano
PlayerPiano copied to clipboard
Clicking "Next" button while paused doesn't unpause UI
- Play a station
- Click pause button, notice the icon turn to the Play symbol
- Click the next song button
Expected: Either a) the next song starts, and the play button turns back into the pause button, or b) the next song begins, the UI updates, but is immediately paused again.
Actual: The next song starts, and the button keeps the play icon.
I've been seeing this when just pausing and unpausing: On pause, the icon turns into the play symbol. Upon clicking it again, the icon stays as is.
From what I've been able to deduce this late at night, it seems to be a problem in PPPianobarController's -isPlaying method: It uses -isInPlaybackMode to determine whether it is playing, but -isInPlaybackMode seems to have a several second delay (likely due to it needing to "startup" again), causing -isPlaying to return NO when the player is unpaused.