1# mpvd 2 3Control [mpv][mpv homepage] using the [MPD][mpd homepage] [protocol][mpd protocol]. 4 5## Status 6 7A toy project for playing around with [libmpdserver][libmpdserver github] 8and the [hy][hy homepage] programming language. Buggy and totally 9incomplete at the moment.1011## Installation1213Setup [libmpdserver][libmpdserver github] using:1415 $ git clone --recursive https://github.com/nmeum/libmpdserver16 $ make -C libmpdserver libmpdserver.so1718Install [hy][hy homepage] and [mpv][mpv homepage], start mpv using:1920 $ mpv --input-ipc-server=/tmp/mpvsock some-file.opus2122Afterwards, start mpvd using:2324 $ export LD_LIBRARY_PATH="<PATH TO LIBMPDSERVER REPOSITORY>"25 $ hy mpvd.hy /tmp/mpvsock2627## Usage2829Very simple interactions with [mpc][mpc homepage] are possible, for example:3031 $ mpc --host localhost --port 6600 pause32 OpenBSD - Trial of the BSD Knights33 [paused] #1/1 0:03/3:04 (1%)34 volume: 84% repeat: off random: off single: off consume: off3536If [mpc][mpc homepage] is installed test can be invoked using:3738 $ ./tests/run_tests.sh3940## License4142This program is free software: you can redistribute it and/or modify it43under the terms of the GNU Affero General Public License as published by44the Free Software Foundation, either version 3 of the License, or (at45your option) any later version.4647This program is distributed in the hope that it will be useful, but48WITHOUT ANY WARRANTY; without even the implied warranty of49MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero50General Public License for more details.5152You should have received a copy of the GNU Affero General Public License53along with this program. If not, see <https://www.gnu.org/licenses/>.5455[mpv homepage]: https://mpv.io/56[mpd homepage]: https://musicpd.org/57[mpd protocol]: https://musicpd.org/doc/html/protocol.html58[libmpdserver github]: https://github.com/nmeum/libmpdserver59[hy homepage]: https://docs.hylang.org60[mpc homepage]: https://www.musicpd.org/clients/mpc/