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

Doesn't work in a webview (Cordova)

Open Titoine opened this issue 8 years ago • 2 comments

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!

Titoine avatar May 11 '16 09:05 Titoine

I manage to make It work with a single file by preloading it with AudioSampleLoader .

Still can't do it with a stream (getUserMedia).

Titoine avatar May 11 '16 09:05 Titoine

"getUserMedia" should nowadays be something like this:

navigator.mediaDevices.getUserMedia({audio: true, video: true})
        .then(handleStreamSuccess)
        .catch(handleStreamError);

Maybe that helps?

rowild avatar Dec 30 '17 10:12 rowild