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

Google autoplay policy #92

Open
jstackman opened this issue Sep 8, 2018 · 4 comments
Open

Google autoplay policy #92

jstackman opened this issue Sep 8, 2018 · 4 comments
Assignees
Labels

Comments

@jstackman
Copy link

It seems that there may be an issue starting in October 2018 with Google Chrome. When running it, I am getting the following warning in Google Chrome:

The Web Audio autoplay policy will be re-enabled in Chrome 70 (October 2018). Please check that your website is compatible with it. https://goo.gl/7K7WLu

I guess you have to do some kind of resume() thing, but I am not familiar with AudioContext().

@IonDen
Copy link
Owner

IonDen commented Sep 18, 2018

I see, i will investigate the issue.

But it should not affect sounds that are played by clicking buttons.

@IonDen IonDen self-assigned this Sep 18, 2018
@akaDJon
Copy link

akaDJon commented Jan 3, 2019

The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
How progress to solve this problem?

@IonDen
Copy link
Owner

IonDen commented Jan 3, 2019

@akaDJon, this can not be solved by JavaScript. This is new browser policy.
To solve this you should do:

  1. Add button, call it "allow sounds"
  2. After user clicked it - play any sound
  3. Now all sounds are allowed on the page.

@free6k
Copy link

free6k commented Apr 12, 2019

@IonDen can you add example to docs like this add with true-way? Thanks

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

No branches or pull requests

4 participants