83cb71d8c527bc90ee5740c734ba9b3aeb42f6ab
This is the program which I use to display the "Now playing: ..." text on my radio page using libwebsocketclient. It uses libmpdclient to enter an idle state awaiting reported changes from the player. This way the program goes dormant until mpd informs it that the song has changed, then it will poll the current song info and send an update to each connected client.
The config variables are stored in mpd_ws.h.
The Makefile is intended to build the binary using OpenBSD make(1) but it should work on every system.
Languages
C
97%
Makefile
3%