

Try to remove the console.log command or modify the code as below: Ĭonsole.log("audio file " + file + "length:" + audioTrack.duration + " sec.") Ĭonsole.log("audio: " + file + " has successfully loaded.") It works fine on Edge but I still don't know why in my application is still not working in a stable way. I've updated the tracks list in my code: let audioTrack = new Audio(file) Ĭonsole.log(audio file [$ has successfully loaded.)


I tried the same code in Chrome, and Firefox and it works perfectly. I'm trying to call Javascript Audio Play() function in Microsoft Edge, but it is not working properly, sometimes it works and sometimes not.
