mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-16 16:03:48 +00:00
add manual ipc request instructions
This commit is contained in:
parent
e63e463140
commit
93a724bb01
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
|
@ -7,6 +7,13 @@ with a wrapper library, a CLI and a server for remote control.
|
||||||
|
|
||||||
## Hacking
|
## 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,
|
mrc does not handle TLS certificates for you. To run the remote control server,
|
||||||
you must create your own PKCS#12 certificates using OpenSSL.
|
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
|
How you handle environment is up to you, Systemd makes it somewhat easy if
|
||||||
running mrc as a service.
|
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
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue