volume-meter icon indicating copy to clipboard operation
volume-meter copied to clipboard

Using with chrome ?

Open efraimdahl opened this issue 4 years ago • 3 comments

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....

efraimdahl avatar Apr 20 '20 17:04 efraimdahl

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

ericruleman avatar Jun 12 '20 04:06 ericruleman

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.

mix3d avatar Jul 07 '20 18:07 mix3d

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

saran13raj avatar Aug 10 '20 06:08 saran13raj