Hi didomax
I have a program that needs to determine play/pause/stop state. I use the /var/local/www/currentsong.txt file (enable the Moode metadata file in the UI) with the following logic
https://github.com/antiprism/mpd_oled/bl...s.cpp#L353
If the file doesn't contain "title=something" then a non-MPD player is being used and the state is 'play',
otherwise, if the file includes "state=stop" then the state is 'stop',
otherwise the state is 'play'.
[Seems like there is no longer any detection of 'pause', whatever 'pause' means...]
Adrian.
I have a program that needs to determine play/pause/stop state. I use the /var/local/www/currentsong.txt file (enable the Moode metadata file in the UI) with the following logic
https://github.com/antiprism/mpd_oled/bl...s.cpp#L353
If the file doesn't contain "title=something" then a non-MPD player is being used and the state is 'play',
otherwise, if the file includes "state=stop" then the state is 'stop',
otherwise the state is 'play'.
[Seems like there is no longer any detection of 'pause', whatever 'pause' means...]
Adrian.