详细问题描述
(DCloud产品不会有明显的bug,所以你遇到的问题大都是在特定环境下才能重现的问题,请仔细描述你的环境和重现方式,否则DCloud很难排查解决你的问题)
[内容]
重现步骤
[步骤]
this.bgAudioMannager = uni.createInnerAudioContext();
this.bgAudioMannager.src = this.dataUrl
this.bgAudioMannager.play()
this.bgAudioMannager.onTimeUpdate(() => {
console.log(bgAudioMannager.currentTime)
})
[结果]
TypeError: this.bgAudioMannager.onTimeUpdate is not a function. (In 'this.bgAudioMannager.onTimeUpdate', 'this.bgAudioMannager.onTimeUpdate' is undefined)
[期望]
上面那段代码就是写在onLoad里面
[如果语言难以表述清晰,拍一个视频或截图,有图有真相]
IDE运行环境说明
[HBuilder 或 HBuilderX。如果你用其他工具开发uni-app,也需要在此说明]
[IDE版本号]
[windows版本号]
uni-app运行环境说明
[编译模式是老模板模式还是新的自定义组件模式?]
App运行环境说明
[Android版本号]
[手机型号]
附件
[IDE问题请提供HBuilderX运行日志。菜单帮助-查看运行日志,点右键打开文件所在目录,将log文件压缩成zip包上传]
[App问题请提供可重现问题的代码片段,你补充的细一点,问题就解决的快一点]
[App安装包或H5地址]
[可重现代码片段]
联系方式
[QQ] 416867448