关于getBackgroundAudioManager的两个问题

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

```

this.audioManager.onCanplay(() => {

console.log(‘---------------onCanplay’)

})

this.audioManager.onWaiting(() => {

console.log(‘-------------onWaiting’)

})

this.audioManager.onError(e => {

this.isPlaying = false

this.$apply()

})

```

1,onCanplay 事件没有执行,onWaiting 是可以

2,第二个问题, 音频暂停后再seek,seek无效

2 回复
taoqian
taoqian1 楼6 年前

同样遇到了这个问题,求官方答复下。补充一点是:如果在开发者工具上,先 play() 再 seek() 是可以的,但是在 iOS 上就不行,必须先 seek() 再 play()

pingxie
pingxie2 楼6 年前

大神,这个问题我也遇到了,音频暂停后seek无效,你解决了吗?