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

Does Not Play in Chrome #7

Open
carlsmith opened this issue Feb 3, 2019 · 1 comment
Open

Does Not Play in Chrome #7

carlsmith opened this issue Feb 3, 2019 · 1 comment

Comments

@carlsmith
Copy link

carlsmith commented Feb 3, 2019

I just tried the online demo using Chrome on OS X, and the Play Button does not do anything (beyond changing the icon to Pause). There's no error message or anything.

I tried refreshing the page, pasting an official example (Kraftwerk - Das Model) into the editor and hitting play. Nothing happened.

The only thing in the console (beyond a few messages from Glitch about Binaryen) is an error message that says The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page, which includes a link to Chrome's policy on autoplaying stuff (in short, you can't).

Note: The error message appears as soon as the page loads (before the Binaryen messages, and not in response to me pressing Play).

I'd assume (without looking at the code) that you're starting Web Audio when the page loads. If so, you instead need to wait and start it from within a callback that's bound to a UI event. In Glitch, that'd obviously be the Play Button.

@carlsmith carlsmith changed the title Not working in Chrome Does Not Play in Chrome Feb 3, 2019
@ghost
Copy link

ghost commented Jul 12, 2019

Restart your device.

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

1 participant