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 - http://apt.kemmer.co.at/tkem.gpg | sudo apt-key add - sudo wget -q -O /etc/apt/sources.list.d/tkem.list http://apt.kemmer.co.at/tkem.list sudo apt-get update sudo apt-get install mpd-watchdog

More info can be found here: https://discuss.mopidy.com/t/radio-doesnt-return-after-internet-dropout-mpd-watchdog/424/10

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…