代码如下
innerAudioContext.onCanplay(() => {
innerAudioContext.duration;
setTimeout(() => {
console.log(innerAudioContext, "innerAudioContext")
console.log(innerAudioContext.duration, "innerAudioContext.duration")
this.setData({
duration: innerAudioContext.duration
})
}, 1000)
})
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)