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

Audio doesn't play on Chromium browsers before user interaction #19

Open
Taureon opened this issue Mar 6, 2022 · 5 comments
Open

Audio doesn't play on Chromium browsers before user interaction #19

Taureon opened this issue Mar 6, 2022 · 5 comments

Comments

@Taureon
Copy link

Taureon commented Mar 6, 2022

I selected a visualizer, dropped a music file in, and it just doesn't work at all.
The only thing I can say is that in the console it says something about requiring an user gesture on the page and then the audio to be resumed.

@Taureon
Copy link
Author

Taureon commented Mar 6, 2022

if it works for anyone else, please tell me the exact browser that you are using
just in case it is just a me problem

@nasso
Copy link
Owner

nasso commented Mar 6, 2022

I think this is a limitation some browsers have to prevent websites from playing audio automatically in the background without any user notice. I don't know if Firefox has this though, have you tried?

@Taureon
Copy link
Author

Taureon commented Mar 8, 2022

after i turn the setting on to allow audio on the page, yea it works.
i still think you should load the audio stuff after the user interacts with the page so maybe it works on chrome again, because almost everyone i ever talked to uses chrome for everything and i happen to have firefox installed

@Taureon
Copy link
Author

Taureon commented Mar 8, 2022

BIG CORRECTION
chrome has the "enable audio" setting too, but you need to go to chrome://settings/content/siteDetails?site=https%3A%2F%2Fnasso.dev
after that you can reload the site and everything should work

@nasso
Copy link
Owner

nasso commented Mar 8, 2022

i still think you should load the audio stuff after the user interacts with the page so maybe it works on chrome again

Yeah exactly, this would solve the problem!

@nasso nasso changed the title It just doesn't. Audio doesn't play on Chromium browsers before user interaction Mar 8, 2022
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

2 participants