Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

411行progress事件需要加判断 #11

Open
zyp199737 opened this issue Jul 31, 2017 · 1 comment
Open

411行progress事件需要加判断 #11

zyp199737 opened this issue Jul 31, 2017 · 1 comment

Comments

@zyp199737
Copy link

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判断,否则会报错,因为超出范围了。

@hilongjw
Copy link
Owner

hilongjw commented Aug 4, 2017

@zyp199737 欢迎提交 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants