03-27-2021, 10:18 PM
You could try the command API.
https://github.com/moode-player/moode/bl.../setup.txt
To get output from commands you will need to uncomment the statement //echo $result; in file /var/www/command/index.php. See below.
https://github.com/moode-player/moode/bl.../setup.txt
To get output from commands you will need to uncomment the statement //echo $result; in file /var/www/command/index.php. See below.
Code:
// MPD commands
else {
if (false === ($sock = openMpdSock('localhost', 6600))) {
$msg = 'command/index: Connection to MPD failed';
workerLog($msg);
exit($msg . "\n");
}
else {
sendMpdCmd($sock, $_GET['cmd']);
$result = readMpdResp($sock);
closeMpdSock($sock);
//echo $result;
}