如何获取到音频文件是时长,duration获得是0
this.innerAudioContext.src = data.sound;
let duration = this.innerAudioContext.duration;
console.log(duration)
输出来的是0
3 回复
this.innerAudioContext.src = data.sound;
let duration = this.innerAudioContext.duration;
console.log(duration)
输出来的是0