-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: Add video progress events #5850
Conversation
bed2e68
to
185ddf1
Compare
Incremental code coverage: 96.72% |
} | ||
if (hasNewCompletionPercent) { | ||
let event; | ||
if (this.completionPercent_ == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm.
According to MDN, at the slowest, we can expect around 4 timeupdate
events per second.
For a very short clip (<25 seconds), if the events are happening at the slowest expected rate, there is the possibility that the completion percent might go up by more than 1 between two events, which could cause us to skip over a quartile event...
I think this would be most likely to happen with the started event, since all that would really need to happen would be for the first timeupdate
event to happen at 0.51% progress (so it gets rounded up to 1%).
I don't know how realistic that combination of factors would be in practice, though.
Closes #2656