feat: Adding audio player + music to play
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Music
|
||||
|
||||
Drop `.mp3` files here. The game's cassette player (bottom of the desk) plays them in random order.
|
||||
|
||||
- Only `.mp3` files are used. The file name becomes the title on the cassette: `03_Evening_Report.mp3` shows as "Evening Report".
|
||||
- No rebuild needed. With Docker this folder is mounted read-only into the container; add files, then reload the page.
|
||||
- `placeholder.mp3` is an empty file that keeps the folder in git and in Docker. Empty files are ignored, so the player shows "No tape" until a real track is added. You can delete it once you have music.
|
||||
- Use music you have the right to use. Nothing here is shipped with the game.
|
||||
|
||||
Running without Docker: `go run ./server` reads `./music` by default; set `MUSIC_DIR` to use another folder.
|
||||
Reference in New Issue
Block a user