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-7106): captions on IE & edge #147

Merged
merged 6 commits into from
Oct 26, 2017
Merged

fix(FEC-7106): captions on IE & edge #147

merged 6 commits into from
Oct 26, 2017

Conversation

odedhutzler
Copy link
Contributor

@odedhutzler odedhutzler commented Oct 25, 2017

Description of the Changes

patch to fix the captions issue on ie and edge, until this issue is resolved. when seeking to a place without captions, the previous captions (if there were any) are still shown. this patch removes them.

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

src/player.js Outdated
*/
_removeCueTextPatch(): void {
const textCue = this._activeTextCues;
if (textCue.length > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

_activeTextCues can be an array so need to iterate over all of it and throw out the out of bound cues and keep the ones in it

src/player.js Outdated
const cueEndTime = textCue._endTime;
const cueStartTime = textCue._startTime;
const currTime = this.currentTime;
if (currTime > cueEndTime || currTime < cueStartTime) {
Copy link
Contributor

Choose a reason for hiding this comment

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

you need to prepare the array you send to processCues before calling it as it is not aware of time, just display.
Calling it like this will cause only the last cue in the array to appear

@OrenMe OrenMe merged commit 4447c1d into master Oct 26, 2017
@OrenMe OrenMe deleted the FEC-7106 branch October 26, 2017 06:05
Tzipi-kaltura added a commit that referenced this pull request Dec 4, 2023
… Bar (#738)

issue:
In Edge browser when video is paused and captions enabled, when seeking in seekbar the caption are not displayed on the player.

solution:
The issue is caused by old fix made here - #147 The original issue no longer reproducible so removed the old patch.

solves ADA-82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants