This repository has been archived on 2022-06-09. You can view files and clone it, but cannot push or open issues or pull requests.
mpv_syndicate/README.md

22 lines
691 B
Markdown
Raw Permalink Normal View History

2021-11-03 18:11:47 +00:00
# mpv Syndicate
A proof-of-concept for a new kind of
[plumbing](http://doc.cat-v.org/plan_9/4th_edition/papers/plumb).
The `mpv_syndicate` program starts an idle mpv instance and waits for assertions
that enqueue videos. When this program is renamed (symlinked to `mpv_syndicate`)
then it will enqueue each URI passed as command arguments.
2021-11-07 17:26:42 +00:00
Requires a local [Syndicate server](https://syndicate-lang.org/tools/broker/)
and is hardcoded to open a UNIX socket at `/run/syndicate/ds`.
2021-11-03 18:11:47 +00:00
```sh
2021-11-07 17:26:42 +00:00
nimble build # probably won't work, nimble is deprecated (unofficially)
2021-11-03 18:11:47 +00:00
ln -s mpv_syndicate enque_video
./enque_video file:///tmp/foo.mkv &
# exits when all videos are enqueue
./mpv_syndicate
```