ion.sound icon indicating copy to clipboard operation
ion.sound copied to clipboard

TypeError · undefined is not a functio

Open plusbpm opened this issue 5 years ago • 2 comments

I get errors from client browsers chrome and samsung internet:

TypeError undefined is not a function 
    node_modules/ion-sound/js/ion.sound.js:321 Object.h.decode
    node_modules/ion-sound/js/ion.sound.js:313 Object.h.ready

How can I fix this?

plusbpm avatar Apr 22 '19 14:04 plusbpm

So, the issue seems to come from:

https://github.com/IonDen/ion.sound/blob/d0eed04fba8de5c05925320d04a9accbcab1e75b/js/ion.sound.js#L321

I.e. audio belongs to an AudioContext instance, however audio.decodeAudioData() is not a function... however, according to MDN that should be supported on these browsers you did mention: https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData

diegocr avatar Dec 27 '19 19:12 diegocr

Will be investigated

IonDen avatar Dec 30 '19 14:12 IonDen