Javascript SoundManager2 360播放器使用createSound方法
根据文档,动态创建声音是这样的,但是如何使用该脚本创建360播放器UI,它只在后台播放mp3,没有任何UI元素Javascript SoundManager2 360播放器使用createSound方法,javascript,jquery,soundmanager2,Javascript,Jquery,Soundmanager2,根据文档,动态创建声音是这样的,但是如何使用该脚本创建360播放器UI,它只在后台播放mp3,没有任何UI元素 var mySoundObject = soundManager.createSound({ // optional id, for getSoundById() look-ups etc. If omitted, an id will be generated. id: 'mySound', url: '/audio/mysoundfile.mp3', // optional
var mySoundObject = soundManager.createSound({
// optional id, for getSoundById() look-ups etc. If omitted, an id will be generated.
id: 'mySound',
url: '/audio/mysoundfile.mp3',
// optional sound parameters here, see Sound Properties for full list
volume: 50,
autoPlay: true,
whileloading: function() { console.log(this.id + ' is loading'); }
});
谢谢