Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sounds working locally but not after deploy #59

Closed
jknapp25 opened this issue Feb 14, 2021 · 3 comments
Closed

Sounds working locally but not after deploy #59

jknapp25 opened this issue Feb 14, 2021 · 3 comments

Comments

@jknapp25
Copy link

My sounds are working locally, but not after I deploy...

Browser: Chrome
Setup: create-react-app
File formats: tried mp3 and m4a
File paths: relative
Stored in public directory?: no

@0xdevalias
Copy link

@jknapp25 If you look in the JS console, are there any CORS related errors by chance?

@n1ru4l
Copy link

n1ru4l commented Mar 16, 2021

are the sounds triggered by user interaction? On mobile devices I had to add this "hack" for playing sound once a message is sent to the user. https://github.com/dungeon-revealer/dungeon-revealer/blob/master/src/register-sound-playback.tsx

@joshwcomeau
Copy link
Owner

My guess is that the files aren't able to be loaded somehow, maybe because the paths change in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants