lundi 2 juillet 2018

calling a sound file from self executable function using module pattern javascript

Im testing to play a simple sound by click my mouse on canvas html5 using module pattern and the self executable functions. it works without the self executable function, but no within. Sorry I have no idea about to upload the simple sound file here. My console saids

    "Uncaught (in promise) DOMException: The element has no supported sources.
mouseDown @ audioFuncionProtegida.js:82"

so Im afraid Im missing something to call the sound file

all the code at https://jsfiddle.net/xy2cs03p/7/

Aucun commentaire:

Enregistrer un commentaire