ion.sound
ion.sound copied to clipboard
TypeError · undefined is not a functio
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?
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
Will be investigated