javascript - SoundManager2 360 player usage with createSound method -


according documentation doc here, dynamically creating sound how create 360 player ui script, plays mp3 @ background without ui element

var mysoundobject = soundmanager.createsound({  // optional id, getsoundbyid() look-ups etc. if omitted, id generated.  id: 'mysound',  url: '/audio/mysoundfile.mp3',  // optional sound parameters here, see sound properties full list  volume: 50,  autoplay: true,  whileloading: function() { console.log(this.id + ' loading'); } }); 

thanks


Comments