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

FilePlayer getSecondsLoaded doesn't account for multiple buffered ranges #381

Closed
mryarbles opened this issue Apr 19, 2018 · 1 comment
Closed

Comments

@mryarbles
Copy link
Contributor

getSecondsLoaded () {
if (this.player.buffered.length === 0) return 0
return this.player.buffered.end(0)
}

As soon as a user seeks that buffered object will have a second range. The index 0 range will be fixed and the second range will now receive the updates, which leads to an incorrect or misleading value in progress events.

@cookpete
Copy link
Owner

Fixed by #380

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