|
对音频播放进度设置怎么无效
const src = audio.src;
audio.src = this.music[0]
audio.volume = 1.0
console.info(this.currentTime)
let currentTime = audio.currentTime
audio.currentTime = 5.0
audio.play()
audio.ontimeupdate = function () {
this.currentTime = audio.currentTime
// this.src = this.music[this.index]
console.log(`audio current time: `+this.currentTime)
}
|
|