mirror of
https://github.com/Dummi26/musicdb.git
synced 2026-04-28 09:39:58 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user