InnerAudioContext实例 startTime 和 seek() 设置无效如何解决?

发布于 7 年前作者 wcai1076 次浏览最后编辑 7 年前来自 issues

我创建InnerAudioContext并且调用seek()方法跳转到指定时间播放,然而音频依然从头开始播放,请问如何解决,设置startTime也是同样的问题。

3 回复
liangyan
liangyan1 楼6 年前

遇到同样的问题,开发工具和真机都不能跳转

基础库版本:2.8.3

监听的事件没有收到消息

innerAudioContext.onSeeking(function() {
            console.log('onSeeking')
        })
 
        innerAudioContext.onSeeked(function() {
            console.log('onSeeked')
        })
console.log(seektime)
 
innerAudioContext.seek(seektime);

开发者工具为最新版本

yong29
yong292 楼6 年前

麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

rgu
rgu3 楼5 年前

谢邀,麻烦看下是哪个版本的基础库