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
fix(UI): Fix UI duration time #4734
Conversation
Incremental code coverage: 100.00% |
const seekRange = this.player.seekRange(); | ||
const duration = seekRange.end - seekRange.start; |
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.
Why is this more correct? I would expect this to be a no-op for VOD, and the live branch doesn't use duration at all.
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.
I don't know how to explain it very well, but in my empirical tests it gives better results because it does not take into account the initial gaps
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.
When does VOD HLS in sequence mode have initial gaps?
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.
Yes
I added a comment to the initial issue (#3657) this PR is linked to and tried the change locally in my companies project, both problems of the issue still occur. |
Closes #3657