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

HTML5 adapter progress percent bug #79

Open
luwes opened this issue Feb 28, 2020 · 0 comments
Open

HTML5 adapter progress percent bug #79

luwes opened this issue Feb 28, 2020 · 0 comments

Comments

@luwes
Copy link
Collaborator

luwes commented Feb 28, 2020

percent: video.buffered.length

video.buffered.length returns the amount of timeranges the video has buffered. it doesn't match the percentage of video buffered.

https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/buffered

it should be something like:

percent: video.buffered.end(video.buffered.length - 1) / video.duration

max seconds buffered in the timeline:

video.buffered.end(video.buffered.length - 1)

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

1 participant