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-7896): endless spinner appears right after changing audio track in IE and Edge #47

Merged
merged 5 commits into from
Feb 11, 2018

Conversation

odedhutzler
Copy link
Contributor

@odedhutzler odedhutzler commented Feb 8, 2018

Description of the Changes

Handling a situation after audio track is changed, only in IE and Edge.
If a waiting event is sent, we send playing event.

@dan-ziv, I didn't use the event manager i thought it's an overkill, cause it's not imported anyway.. let me know if you think otherwise.

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

Trigger a playing event whenever an audio track is changed & time_update event is fired. This align Edge and IE behaviour to other browsers. When an audio track changed in IE & Edge, they trigger
waiting event but not playing event
this._videoElement.dispatchEvent(new Event(BaseMediaSourceAdapter.Html5Events.PLAYING));
this._videoElement.removeEventListener(BaseMediaSourceAdapter.Html5Events.TIME_UPDATE, timeUpdateListener);
}
this._videoElement.addEventListener(BaseMediaSourceAdapter.Html5Events.TIME_UPDATE, timeUpdateListener)

Choose a reason for hiding this comment

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

@odedhutzler we dont have once? (listen only once to the event?)
all in all looks good!

itaykinnrot
itaykinnrot previously approved these changes Feb 11, 2018
@dan-ziv
Copy link
Contributor

dan-ziv commented Feb 11, 2018

@odedhutzler please dispatch the event from the adapter itself and not from the video element and change the PR title to the ticket title and make the current title as the description

@odedhutzler odedhutzler changed the title fix(FEC-7896): added playing event after waiting event, in case of audio track change in IE and Edge fix(FEC-7896): endless spinner appears right after changing audio track in IE and Edge Feb 11, 2018
@dan-ziv dan-ziv merged commit ce4b28d into master Feb 11, 2018
@dan-ziv dan-ziv deleted the FEC-7896 branch February 11, 2018 10:19
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