Mp3 and createjs
I have this code in the HTML5 canvas fla document:
createjs.Sound.on("fileload", handleFileLoad);
createjs.Sound.registerSound("music1.mp3", "MySound");
function handleFileLoad()
{
createjs.Sound.play("MySound");
}
It doesn't launch in both Chrome or Android but in Microsoft Edge where it works.
In the Chrome console it says: "createjs-2015.11.26.min.js:17 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
c._generateCapabilities @ createjs-2015.11.26.min.js:17
2createjs-2015.11.26.min.js:17 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
b._createAndPlayAudioNode @ createjs-2015.11.26.min.js:17"
It has worked once with an HTML5 canvas fla document
Is the error in the createjs codes and why has it stopped working. So please help with solving this.
