JakubKoralewski / lets-watch-it-together-private

Unconnected fork of LWIT. Private for the duration of SCRUM project.
https://lets-watch-it-together-scrum.herokuapp.com
MIT License
1 stars 0 forks source link

feat(sound): play automatically & ButtonWithSound.tsx #17

Closed JakubKoralewski closed 3 years ago

JakubKoralewski commented 3 years ago

First, I did some refactoring for /src/components/sounds

The paths to mp3s are now enum values

The bgMusic is now played on login (allegedly pls test)

Added a ButtonWithSound component that behaves exactly like a normal material-ui Button but you can overwrite the volume and source props to change the played sound.

You can add sounds by adding more files in /public/static/mp3 wav is not mpp3 but w/e

JakubKoralewski commented 3 years ago

there's some issues with the BgMusic being played multiple times, at this point I'd just add a bug issue and move on w/e 🤷