const blob = new Blob([buffer9], { type: "audio/mp3" });
const url = window.URL.createObjectURL(blob);
innerAudioContext.autoplay = true;
innerAudioContext.src = url;
innerAudioContext.onPlay(() => {
console.log('开始播放');
});
innerAudioContext.onError((res) => {
console.log(res, 'onError');
});
innerAudioContext.play()
h5代码如下。app该如何做呢。谢谢各位~
1 个回复
FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866
blob保存为文件,再播放