-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: background music, score, limit songs by user
Hi @vicwomg, i've created some features that some users and my friends asked for. - Background music on splash screen - Score at the end of songs - Limit user songs in queue I've also created the possibility for the user to change preferences in the `info.html`, that are stored in a file called `config.ini`, so it doesn't have to change them in the command line everytime. I've added a `sounds` folder inside the `static` folder, to serve the sounds. == Background music == - A music that plays when the `splash` screen is in the screen. - I've setted the bg music to play on default but added a `--disable-bg-music` command line to disable it. - Also added a `--bg-music-volume` to set it's volume and a `--bg-music-path` so that the user can change the default bg music. == Score == - A fake score screen after each song is played. - It's in the `splash` screen. - I've created a `score.js` script and added a `fireworks.js` script to the `static` folder. - The score reaction (claps, fireworks and review) varies depending on the fake score value (under 30, under 60 or above 60). - The score reviews are stored in a variable inside the `splash` screen so that it can be translated. - I've setted the score to be shown by default but added a `--disable-score` command line to disable it. == Limit user songs by == - Limits songs a user can put simultaneously in queue. - The default limit is 0 (illimited) - The user can use the command line `--limit-user-songs-by` to set the desired limit. == User preferences == - In the info page, the user can set it's preferences. - Now it only holds this preferences (score on/off, bg music on/off, bg music volume and limit songs in queue) but we can add more reusing the same the api endpoint in `app` and the `change preferences`function in `karaoke`. There's more to do, and I hope to find some time to make it happen. If you have any doubts don't hold to ask me. Happy new year. :)
- Loading branch information
1 parent
f254ae2
commit f6f92a7
Showing
15 changed files
with
621 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ dist/ | |
songs/ | ||
qrcode.png | ||
.DS_Store | ||
config.ini | ||
docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.