wx.createinnerAudioContext()真机不能播放
发布于 4 年前 作者 guiying82 4461 次浏览 来自 问答
  • 需求的场景描述(希望解决的问题)

this.innerAudioContext = wx.createInnerAudioContext();

this.innerAudioContext.onError((res) => {

console.log(“播放录音失败!”, res.errMsg, res.errCode)

})

this.innerAudioContext.src = this.data.vPath;

this.innerAudioContext.autoplay = true

console.log(“加载语音”, this.data.vPath)

this.innerAudioContext.onPlay(() => {

console.log(‘onPlay:开始播放’);

})

在开放平台可以播放,安卓真机上不能播放

  • 希望提供的能力
3 回复

看下onError里面返回什么信息

不知道怎么搞的,现在可以正常播放了

同遇到这个问题,onError返回 errCode55, err:unknow format, 10004

回到顶部