I am using mplayer to stream audio coming from an MPD instance that is configured to output via HTTP:
The stream is controlled by an MPD client (Cantata). The stream pauses whenever MPD reaches the end of the play queue defined in the client. When this happens, mplayer exits immediately. I would like for it to keep running and play new content as soon as it becomes available (i.e., as soon as new items are added to the play queue in the client).
I tried running mplayer with the
-idle option, and while this does cause mplayer to keep running after the stream stops, no audio output is produced when starting to play content in the MPD client.
How can I make mplayer listen for the stream to become active again and start playing what it is receiving from the stream?
EDIT: MPD is running on a server in my LAN, and Cantata and mplayer are running on my Laptop.