From 8f916d18e598c460274008808e996e1ece45aeee Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 31 Mar 2020 20:51:01 -0700 Subject: Add part of jukebox script --- Run/Que/quescripts.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Run') diff --git a/Run/Que/quescripts.md b/Run/Que/quescripts.md index 204328a..0414d90 100644 --- a/Run/Que/quescripts.md +++ b/Run/Que/quescripts.md @@ -35,4 +35,16 @@ coming soon ## Collaborative jukebox -coming soon +It's surprisingly easy to make a collaborative jukebox. + +First start up a music player: + + que --poll pub/music --then "playsong '\msg'" + +where `playsong` is a script that plays a file from data streaming to +`stdin`. For example [vlc](https://www.videolan.org/vlc/) does this when +you run it like `vlc -`. + +Then, anyone can submit songs with: + + que pub/music song.mp3 -- cgit v1.2.3