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-8606): "Play 100%" event is not sent on IE11 Win7 #30

Merged
merged 5 commits into from
Jan 29, 2019

Conversation

shalomm-gloat
Copy link
Contributor

Description of the Changes

const percent = this.player.currentTime / this.player.duration, returened a number above 1 on IE 11, therefore, never entred, the if (!this._timePercentEvent.PLAY_REACHED_100 && percent === 1) condition.

The fix:

  1. Limiting the float to have only 2 decimals at the end using the toFixed function.
  2. Parsing the calculation using parseFloat function.
  • 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

@kaltura-hooks
Copy link

Hi @shalommeoded,
Thank you for contributing this pull request!
Please sign the Kaltura CLA so we can review and merge your contribution.
Learn more at http://bit.ly/KalturaContrib

@OrenMe OrenMe merged commit c13a3df into master Jan 29, 2019
@OrenMe OrenMe deleted the FEC-8606-no_play_100_event_on_IE11_Win7 branch January 29, 2019 13:48
DanilMolchanovKaltura pushed a commit that referenced this pull request Nov 28, 2024
Description of the Changes
the issue:
when loading a YT entry and clicking the download icon button, there is a source to download (with image icon), although there are no flavors for youtube entries.

solution:
render download item for image only if imageUrl has a value; render sources (default and flavors) only if array of flavors is not empty - it is possible to have a youtube entry, which has no flavors, but has captions which we would like to allow downloading.

Solves FEC-13455
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