Heim > Fragen und Antworten > Hauptteil
javascript
var audioContext = new window.AudioContext(); var x = new XMLHttpRequest(); x.open('GET','http://vsco.qiniudn.com/1771178738.m4a',true); x.responseType='arraybuffer'; /*...???...*/ x.onload = function() { audioContext.decodeAudioData(x.response, function(buffer) { /*...???...*/ } } x.send();