network stream resume after drop-out

Currently, when playing webradio streams and the connection goes away (e.g. due to internet outage or reconnect), the music just stops.
The playback does not continue with the next track but just sits there with a interrupted stream in “play” state.

However, when the connection comes back, the playback is not resumed but remains silent.
Volumio should detect this situation and restart / resume playback of network ressources - especially webradio streams or things like spotify.

There is a workaround that has been implemented by tkem in form of a mpd watchdog.

It can be installed via apt

wget -q -O - | sudo apt-key add - sudo wget -q -O /etc/apt/sources.list.d/tkem.list sudo apt-get update sudo apt-get install mpd-watchdog

More info can be found here:

I’ve been using this for years and it has worked flawlessly in the musicbox distro. In the context of volumio, it does not work 100% because it interacts with MPD directly which is not reflected in Volumio’s state in the web UI (or in “volumio status” command result).

In this case, you’ll better write a function to handle such situation in Volumio’s mpd controller…

It is 2023 with volumio 3 and we (at least I) still face this exact issue. This is such a pain.

Can you please fix this for us without us needing to add 3rd party tools?

You can adapt the script, so it suits volumio. (prob need some tweaking)
But with 2 remarks in 6 years, I doubt it will be added soon.

mpc_status() {
    $MPC status | grep -iE "status" | sed 's/^.*[: ]//' | sed 's/.$//'


You might be correct - I thought, maybe there are other threads out there as well mentioning this issue.
And just imagine this behavior on the commercial volumio players. For me this would be a reason to return it instantly.

Thanks for the fix!

1 Like