资 源 简 介
var KeKeMusic = { mark:false, init:function(){ //1:音频上下文===html5+ajax+audioContext html5+audio+audioContext window.AudioContext = window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.msAudioContext; /*动画执行的兼容写法*/ window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame; //2:初始化音轨对象 var audioContext = new window.AudioContext(); return audioContext; }, parse:function(audioContext,audioDom,callback){ try{ //拿到播放器去解析你音乐文件 var audioBufferSouceNode = audioContext.createMediaElementSource(audioDom); //创建解析对象 var analyser = audioCon