Open zyp199737 opened 7 years ago
this.$video.addEventListener('progress', (e) => { if(this.$video.onprogress){ this.video.loaded = (-1 + (this.$video.buffered.end(0) / this.$video.duration)) * 100 } })
加上this.$video.onprogress判断,否则会报错,因为超出范围了。
@zyp199737 欢迎提交 PR
this.$video.addEventListener('progress', (e) => { if(this.$video.onprogress){ this.video.loaded = (-1 + (this.$video.buffered.end(0) / this.$video.duration)) * 100 } })
加上this.$video.onprogress判断,否则会报错,因为超出范围了。