volume-meter
volume-meter copied to clipboard
Doesn't work in a webview (Cordova)
Hi,
this small library would be perfect for me, but It doesn't work with Cordova. Buffers are always to 0.
It's a bit weird because It work well in Android Chrome but not when in a Cordova App that use a Android Chrome webview..maybe It's related to this : https://bugs.chromium.org/p/chromium/issues/detail?id=419446
This isn't a bug from your library but If you have any idea why and how I could solve this, I would praise you like a god. If not, you can close this issue right now and thanks for that lib!
I manage to make It work with a single file by preloading it with AudioSampleLoader .
Still can't do it with a stream (getUserMedia).
"getUserMedia" should nowadays be something like this:
navigator.mediaDevices.getUserMedia({audio: true, video: true})
.then(handleStreamSuccess)
.catch(handleStreamError);
Maybe that helps?