opus-recorder
opus-recorder copied to clipboard
ondataavailable not fired with waveWorker
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.