- 当前 Bug 的表现(可附上截图)
首次调用
wx.createInnerAudioContext时
复现机型:
MIX2
魅族m5
data: {
time: null,
voiceSrc: null,
audioContext: null,
},
onLoad() {
this.setData({
audioContext : wx.createInnerAudioContext()
})
},
onUnLoad(){
this.voicePlayer.destroy();
},
playNowFun() {
this.voicePlayer.destroy()
if(this.data.voiceSrc){//voiceSrc 由异步请求传入
// this.playVoice()
this.data.audioContext.src = this.data.voiceSrc;
this.data.audioContext.play()
}
},
换下文件格式,也许会管用
以上机型都会偶现这个问题,MIX2出现频率更高