使用的小程序基础库 2.28.0(最新的),手机不能播放mp3文件,文件是云存储的,代码如下:
const audioCtx = wx.createInnerAudioContext({
useWebAudioImplement: true,
})
onShow(){
let file="cloud://develop-yun.6465-develop-yun-1300069384/hanyupinyin/a1a.mp3"
this.playfile(file)
},
playfile(filename){
if(filename){
audioCtx.src = filename
audioCtx.play()
this.setData({
filename,
})
}
}
请检查,谢谢!
已恢复,麻烦重试下看看是否正常
控制台报错信息:
{message: "undefined is not an object (evaluating 'r.failCallbacks')", line: 1, column: 840045, sourceURL: "https://lib/WAServiceMainContext.js", stack: "@https://lib/WAServiceMainContext.js:1:840045"}