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

Using with chrome ? #13

Open
efraimdahl opened this issue Apr 20, 2020 · 3 comments
Open

Using with chrome ? #13

efraimdahl opened this issue Apr 20, 2020 · 3 comments

Comments

@efraimdahl
Copy link

I was wondering how one would have to change this to get it working with chrome.
For me it works well with Firefox, but on chrome and edge it only asks for mediaStream access but the meter does not animate after that....

@ericruleman
Copy link

I'm having similar problems with Chrome, no issues with Firefox.

@mix3d
Copy link

mix3d commented Jul 7, 2020

Chrome has recently added some user-privacy features, preventing audio contexts from starting before the user has interacted with the page, otherwise the audio context is started in a paused state.
You have to either:

  • Create the audio context on a user event, like a button click (will work as normal)
  • call audioContext.resume() on a user event, like a button click

There is a flag you can turn off in Chrome if you absolutely need it to run without user intervention.

@saran13raj
Copy link

Chrome has recently added some user-privacy features, preventing audio contexts from starting before the user has interacted with the page, otherwise the audio context is started in a paused state.
You have to either:

  • Create the audio context on a user event, like a button click (will work as normal)
  • call audioContext.resume() on a user event, like a button click

There is a flag you can turn off in Chrome if you absolutely need it to run without user intervention.

This worked. Thanks

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