opus-recorder icon indicating copy to clipboard operation
opus-recorder copied to clipboard

ondataavailable not fired with waveWorker

Open alqa-dash opened this issue 2 years ago • 0 comments

Hello,

As stated in documentation:

rec.ondataavailable( arrayBuffer ) A callback which returns an array buffer of audio data. If streamPages is true, this will be called with each page of encoded audio. If streamPages is false, this will be called when the recording is finished with the complete data.

But is doesn't work with: recorder = new Recorder({encoderPath: "waveWorker.min.js", streamPages: true});

I figured out than when recorder has been created this way, the waveWorker doesn't react to "flush" command neither in AudioWorkletGlobal nor in scriptProcessor scope.

I can provide pr but never did it before.

alqa-dash avatar Jan 23 '23 13:01 alqa-dash