Hello,
I'm getting the following error when using this code: Cannot detect data type object
let sound = new Audio();
sound.src="test.mp3";
sound.addEventListener("loadeddata",()=> {
var ctx=new AudioContext();
var source=ctx.createMediaElementSource(sound);
this.sound = sono.create({
src: sound,
onComplete:() => { this.doneLoading(); } });
I use the event so that I can check that the media has loaded.
I also tried using sound as the src: parameter but it didn't work, with the same error.
Any hints or is this a bug?