08-10-2019, 10:54 PM
We also have a mechanism (engine-cmd.php) to send commands from the server to the client so in theory it should be possible to use it to provide an interface to the non-MPD features of the UI. There are a lot of moving parts though so not a trivial dev project.
It would be something like below
- LIRC maps button X to command: /var/www/command/new_script.php 'random_album'
- When X is pressed new_script.php executes function sendEngCmd($cmd);
- JS code running in Browser receives 'random_album' command and performs $('.ralbum).click()
Something like that.
It would be something like below
- LIRC maps button X to command: /var/www/command/new_script.php 'random_album'
- When X is pressed new_script.php executes function sendEngCmd($cmd);
- JS code running in Browser receives 'random_album' command and performs $('.ralbum).click()
Something like that.