BenzLeung / benz-amr-recorder

Play, record, reformat AMR audio
https://benzleung.github.io/benz-amr-recorder/demo.html
MIT License
336 stars 100 forks source link

parameter 1 is not of type 'ArrayBuffer' #36

Open qzcsgs opened 4 years ago

qzcsgs commented 4 years ago

Uncaught (in promise) TypeError: Failed to execute 'decodeAudioData' on 'BaseAudioContext': parameter 1 is not of type 'ArrayBuffer'.

BenzLeung commented 4 years ago

Which "InitWith" function did u use below?

amr.initWithArrayBuffer(array);
amr.initWithBlob(blob);
amr.initWithUrl(url);
Xyelidae commented 4 years ago

你可能是使用了 mock.js,这个插件会修改劫持 XHR