playBySeek: function (seek, endTime) {
let that = this;
this.innerAudioContext.seek(seek)
this.innerAudioContext.onSeeked(that.seekcall(endTime))
},
seekcall(endTime){
let that = this
console.log("播放跳转进度的音频,结束时间",endTime)
this.innerAudioContext.play()
setTimeout(() => {
that.innerAudioContext.offSeeked(that.seekcall)
that.innerAudioContext.stop()
}, endTime * 1000)
},
s设置了seek进度后,在模拟器上是可以正常播放.但在真机测试中是从音频初始位置开始播放
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。