02-22-2022, 09:18 PM
If only using MPD then one way to determine play state is via the command below.
Code:
# Playing
pi@moode:~ $ mpc status | grep playing
[playing] #50/50 0:10/0:39 (25%)
# Not playing
pi@moode:~ $ mpc status | grep playing
pi@moode:~ $