PromyLOPh / pianobar

Console-based pandora.com player
http://6xq.net/pianobar/
Other
1.73k stars 323 forks source link

Pausing a song for more than a few seconds breaks playback #702

Closed nneul closed 3 years ago

nneul commented 3 years ago

Subject of the issue

I've seen this ever since I started using pianobar - just now getting around to reporting.

Playback hangs/stops after a little while if you pause.

Your environment

password = xxxxxxxxxxxxxxx
user = xxxxxxxxxxxxxxxxx
audio_quality = high
autostart_station = 3563273528223108439
event_command = /users/nneul/bin/lastfm-scrobble

Steps to reproduce

Pause a song. Wait 30-40 seconds (i.e. if you took a phone call/whatever) Unpause Song will continue to play, possibly up until buffer empty - and will then hang. It may or may not recover after this if you continue to wait.

Expected behaviour

Should be able to pause and resume.

It'd be tolerable if it broke playback of the current song and skipped to next, but as it is now, it breaks and only way to really recover is to restart app.

Actual behaviour

After unpausing - gets about 20 seconds of playback, then just stops. No error message. Sometimes it seems like if I let it sit there, it stutters after about another 10-15 seconds and then skips to next song.

PromyLOPh commented 3 years ago

By default it should time out after 30 seconds. You can decrease this by setting the timeout option in your config file. If it does not you can also force a reconnect by pressing Ctrl-C once. Does that help?

nneul commented 3 years ago

Yes, both of those options significantly improve experience. Thank you!