add manual ipc request instructions

This commit is contained in:
raf 2025-02-05 03:54:04 +03:00
commit 93a724bb01
No known key found for this signature in database
GPG key ID: EED98D11B85A2819

View file

@ -7,6 +7,13 @@ with a wrapper library, a CLI and a server for remote control.
## Hacking
Both CLI and server utilities require mpv to be started with the IPC socket
enabled.
```bash
mpv --idle --input-ipc-server=/tmp/mpvsocket
```
mrc does not handle TLS certificates for you. To run the remote control server,
you must create your own PKCS#12 certificates using OpenSSL.
@ -30,3 +37,12 @@ Then start the server with `cargo run --bin=server`.
How you handle environment is up to you, Systemd makes it somewhat easy if
running mrc as a service.
### Testing mpv IPC socket
If you suspect some IPC commands are not being sent properly, try sending them
manually first with something like socat.
```bash
echo '{ "command": ["pause"] }' | socat - /tmp/mpvsocket
```