Here is my use case : I would like my windows PC to play an mp3 stream from a server which may be temporarily down. I would like the client to actually play the mp3 stream when the server is up, then if it is down, wait until it is up again and resume playback. Ideally, I would like this client to be discrete, without any interface or maybe juste sitting into the notification area. No popup in case the server is not reachable. This sounds quite simple but I haven't found what I was looking for so far.
Searching the forums, I tested with VLC using these options :
Code: Select all
vlc.exe http://my_server_IP:8000/mystream.mp3 --intf dummy --http-reconnect
- If the disconnection is short enough (approx 1 min max), playback is resumed and everything is OK
- If the disconnection is longer, playback is not resumed, VLC is stuck on a ~15sec loop with mostly silence then a short slice of the buffer as it was when the server disconnected. It goes like this a couple of times, then the slice reduces again, etc... The client will never try to reconnect to the server.
I thought that this behaviour was linked to the fact that the server was broadcasting an endless stream, so I tried using --http-continuous with no luck, then with the help of other forums I tried the --loop option in case VLC was stuck at the end of the playlist but it did not help. In fact VLC seems to be stuck on this item. Once the server is back, I tried to wait +30min to see if VLC client tried to reconnect but it did not. If I start another instance, it works fine, playback is started in this new instance.
It looks as if after a certain "timeout", server unavailability was not detected by the VLC client which remains stuck trying to play the stream.
Do you think that my use case can be fulfilled by VLC of do I need to search for another tool? Is there something I missed into VLC configuration ?
I can provide log or anything that could be of help. I am running VLC 2.2.8 in Windows 10. The server is Icecast running on an Armbian Pi.
Thanks for your help.
Lionel