javascript - Can't hear any sound with ion.sound on Firefox/Chrome -


i'm having trouble using plugin, if code quite simple, browser can't seem play :(

  • some context :
    • computer laptop windows 10
    • browsers firefox 43.0.4 , chrome 48.smthg

and code looks this

  • sounds.js

    // init bunch of sounds ion.sound({     sounds: [         {             name: "beer_can_opening",             ended_callback: function () {                 console.log("ended")             },             ready_callback: function () {                 console.log("ready")             }         },         {name: "bell_ring"},         {name: "branch_break"},         {name: "button_click"}     ],      // main config     path: "sounds/",     preload: true,     multiplay: true,     volume: 0.9,     loop: 10 });  // play sound ion.sound.play("beer_can_opening"); 
  • index.html

    <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html> <head>     <script src="jquery-1.12.0.min.js"></script>     <script src="ion.sound.min.js"></script>     <script src="sounds.js"></script>     <script src="sorcery.js"></script>     <link type="text/css" rel="stylesheet" href="style.css"/>     <meta lang="fr" xml:lang="fr" content="text/html;charset=utf-8" http-equiv="content-type">     <title>sword & sorcery</title> </head> 
  • finally folder sounds there, beer_can_opening.aac/ogg/mp3 too.

  • in both browser's console i'm getting "ready" not "ended" not matter how long wait
  • no other errors whatsoever :(
  • the demo @ http://ionden.com/a/plugins/ion.sound/en.html (like other demos author posted ) work great

help appreciated, plugin should work nicely, i'd use :)

this autoplay bug. fixed in latest release: https://github.com/ionden/ion.sound/issues/71


Comments