03-28-2021, 08:13 AM
(03-27-2021, 10:18 PM)Tim Curtis Wrote: 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.
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;
}
Thanks @Tim Curtis , I will try it.
Max