add more modes to client and change server cli

server can now source its database and files from
another server, but it will have its own
queue and appears as separate to clients.

the client now has gui-syncplayer-{local,network}
modes which show the gui and also play the songs.
using a syncplayer-network mode now automatically
enables the cache manager, which should make
waiting for songs to load less frequent.
This commit is contained in:
Mark
2024-05-28 13:20:43 +02:00
parent 7d6d6d295b
commit 61110f5f4a
14 changed files with 405 additions and 139 deletions

View File

@@ -76,7 +76,7 @@ musicdb-client 0.0.0.0:26002 gui
To start the server:
```sh
musicdb-server ~/my_dbdir ~/music --tcp 0.0.0.0:26002
musicdb-server --tcp 0.0.0.0:26002 --play-audio local ~/my_dbdir ~/music
```
A simple script can start the server and then the client:
@@ -84,7 +84,7 @@ A simple script can start the server and then the client:
```sh
# if the server is already running, this command will fail since 0.0.0.0:26002 is already in use,
# and you will never end up with 2+ servers running at the same time
musicdb-server ~/my_dbdir ~/music --tcp 0.0.0.0:26002 &
musicdb-server --tcp 0.0.0.0:26002 --play-audio local ~/my_dbdir ~/music &
# wait for the server to load (on most systems, this should never take more than 0.1 seconds, but just in case...)
sleep 1
# now start the client