feat: added playlist option
All checks were successful
Build and Push Docker Image / docker (push) Successful in 10s
All checks were successful
Build and Push Docker Image / docker (push) Successful in 10s
This commit is contained in:
34
README.md
34
README.md
@@ -65,8 +65,38 @@ Dann im Browser öffnen: http://localhost:5173
|
||||
## Ordnerstruktur
|
||||
|
||||
- `public/` – Client (HTML/CSS/JS)
|
||||
- `server.js` – Express + WebSocket Server, Game-State
|
||||
- `data/` – eure MP3-Dateien
|
||||
- `src/server/` – Express + WebSocket Server, Game-State
|
||||
- `data/` – eure Audio-Dateien und Playlists
|
||||
|
||||
### Playlist-Unterstützung
|
||||
|
||||
Die App unterstützt jetzt mehrere Playlists! Du kannst verschiedene Playlists für verschiedene Spielsessions erstellen:
|
||||
|
||||
**Ordnerstruktur für Playlists:**
|
||||
|
||||
```
|
||||
data/
|
||||
├── (Audio-Dateien hier = "Default" Playlist)
|
||||
├── 80s-Hits/
|
||||
│ ├── Song1.opus
|
||||
│ ├── Song2.opus
|
||||
│ └── ...
|
||||
├── Rock-Classics/
|
||||
│ ├── Song1.opus
|
||||
│ └── ...
|
||||
└── Party-Mix/
|
||||
├── Song1.opus
|
||||
└── ...
|
||||
```
|
||||
|
||||
**So funktioniert's:**
|
||||
|
||||
1. **Standard-Playlist**: Audio-Dateien direkt im `data/`-Ordner werden als "Default"-Playlist erkannt
|
||||
2. **Eigene Playlists**: Erstelle Unterordner im `data/`-Verzeichnis, z.B. `data/80s-Hits/`
|
||||
3. **Playlist-Auswahl**: Als Raum-Host kannst du in der Lobby die gewünschte Playlist auswählen, bevor das Spiel startet
|
||||
4. **Unterstützte Formate**: .mp3, .wav, .m4a, .ogg, .opus
|
||||
|
||||
**Empfehlung**: Nutze das `.opus`-Format für optimale Streaming-Performance und geringeren Speicherverbrauch. Das Konvertierungsskript `npm run audio:convert` wandelt automatisch alle Audio-Dateien in Opus um.
|
||||
|
||||
## Git & Audio-Dateien
|
||||
|
||||
|
||||
Reference in New Issue
Block a user