wx.createInnerAudioContext() 安卓真机无法使用
- 当前 Bug 的表现(可附上截图)
- 预期表现
执行:console.log(‘开始播放’);
- 复现路径
- 提供一个最简复现 Demo
let that = this;
let innerAudioContext = wx.createInnerAudioContext(); //创建播放实例
this.data.innerAudioContext = innerAudioContext;
// innerAudioContext.src = card.userVoice;
innerAudioContext.src = “http://testflly.hulelive.com/feimatroot/aaa.mp3”;
innerAudioContext.play();
innerAudioContext.onPlay(() => {
console.log(‘开始播放’);
that.setData({
playStop: 1
})
that.playTime();
});
innerAudioContext.onError((res) => {
console.log(‘播放错误’, res);
that.setData({
playStop: 0
})
})