源碼地址:https://github.com/xiangyuecn/Recorder
demo地址:https://xiangyuecn.github.io/Recorder/
服務器返回二進制轉成audio可播放路徑
var sblod = new Blob([bufs]);//bufs爲二進制
var audio=document.getElementById("audioView");// 設置路徑使用jQuery或者直接生成dom都不生效
if (window.URL) {
audio.src = window.URL.createObjectURL(sblod);
} else {
audio.src = sblod;
}
audio.autoplay = true;//自動播放