09-22-2019, 08:56 AM
Hi JB
I have pushed an update to show the alternative renderer name.
The final decision logic is:
Query MPD:
If "play"/"pause"
MPD being used, state is "play"/"pause", display detailled song information
else
read current song file
if file opened, and renderer name is read, and state value is not present or is not read as "stop"
state is "play", display renderer name
else
state is "stop"
I have only tested using the Bluetooth renderer.
mpd_oled MUST be built with 'PLAYER=MOODE make' for the new code to be triggered. In other words, it works when built on Moode 6.
For Moode 5 it should still be possible to build with 'PLAYER=MOODE make' if you edit the mpd_oled Makefile and change
to
(although I have not tested this).
Please let me know if you come across any issues!
Adrian.
I have pushed an update to show the alternative renderer name.
The final decision logic is:
Query MPD:
If "play"/"pause"
MPD being used, state is "play"/"pause", display detailled song information
else
read current song file
if file opened, and renderer name is read, and state value is not present or is not read as "stop"
state is "play", display renderer name
else
state is "stop"
I have only tested using the Bluetooth renderer.
mpd_oled MUST be built with 'PLAYER=MOODE make' for the new code to be triggered. In other words, it works when built on Moode 6.
For Moode 5 it should still be possible to build with 'PLAYER=MOODE make' if you edit the mpd_oled Makefile and change
Code:
else ifeq ($(PLAYER),MOODE)
PLAYERLIBS=-li2c
Code:
else ifeq ($(PLAYER),MOODE)
PLAYERLIBS=
Please let me know if you come across any issues!
Adrian.