js代码
window.onload = function(){
MC.music({
hasAjax:false,
left:'50%',
bottom:'50%',
musicChanged:function(ret){
// alert(ret.url);
// getMusic_buffer(ret.url);
// return;
var data = ret.data;
var index = ret.index;
var imageUrl = data[index].img_url;
var music_bg = document.getElementById('music-bg');
music_bg.style.background = 'url('+imageUrl+')no-repeat';
music_bg.style.backgroundSize = 'cover';
music_bg.style.backgroundPosition = 'center 30%';
},
getMusicInfo:function(data){
},
musicPlayByWebAudio:function(ret){
},
});
}