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

fix(FEC-10760): Youbora - bufferUnderrun event fired when buffering started and no bufferDuration in Ping events #516

Merged
merged 2 commits into from
Dec 8, 2020

Conversation

dan-ziv
Copy link
Contributor

@dan-ziv dan-ziv commented Dec 7, 2020

Description of the Changes

When buffering on live content, the order of events that triggered from the video element is:

  1. playing
  2. waiting
  3. timeupdate
    (this is true for all browsers except IE)
    Because we're triggering playing on timeupdate event we're causing Youbora to report end of buffer when the player is actually still buffering.

The solution is to exclude this logic only to IE.

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@dan-ziv dan-ziv requested a review from a team December 7, 2020 08:20
[Html5EventType.TIME_UPDATE]: () => {
if (this._player.currentTime !== this._lastWaitingTime && this._prevState && this._prevState.type === StateType.PLAYING) {
if (
Env.browser.name === 'IE' &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So actually this is the only change in logic, right? the rest seems to be refactoring

Copy link
Contributor Author

@dan-ziv dan-ziv Dec 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes...
Just changing the event dispatching to be from updateState because you always want to do it and there's no need to split it outside in so many places.

@dan-ziv dan-ziv merged commit a287fa4 into master Dec 8, 2020
@dan-ziv dan-ziv deleted the FEC-10760 branch December 8, 2020 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants