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-11697): 2 captions are selected in the menu #633

Merged
merged 15 commits into from
Feb 20, 2022
Merged

Conversation

JonathanTGold
Copy link
Contributor

@JonathanTGold JonathanTGold commented Feb 10, 2022

Description of the Changes

issue: the create _addTextTrackOffOption method of the player creates duplicated indexes every time duplicated languages are detected (and warning created);
fix: right now the index property of TextTrack is used as a unique identifier but in the other hand we don't mange it as such (the index is created in different places), so , the index management all moved to one place under the TextTrack class

related pr:

kaltura/playkit-js-dash#182
kaltura/playkit-js-hls#161

solves: FEC-11697 & FEC-11893 & FEC-11973

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

test/src/player.spec.js Outdated Show resolved Hide resolved
JonathanTGold added 2 commits February 14, 2022 16:20
src/track/text-track.js Outdated Show resolved Hide resolved
src/track/text-track.js Outdated Show resolved Hide resolved
src/track/text-track.js Outdated Show resolved Hide resolved
@JonathanTGold JonathanTGold merged commit bf28e11 into master Feb 20, 2022
@JonathanTGold JonathanTGold deleted the FEC-11697 branch February 20, 2022 14:05
JonathanTGold added a commit to kaltura/playkit-js-hls that referenced this pull request Mar 2, 2022
see kaltura/playkit-js#633

**in addition regardless of the original issue** 
add error handling on load() method.
**issue:**  the promise will remain 'pending' forever ... in case an manifest loading error
Since the promise resolving returned from the load() rely on Hlsjs.Events.MANIFEST_LOADED event https://github.com/kaltura/playkit-js-hls/blob/master/src/hls-adapter.js#L140 to be resolved which is not fired in case of en error
**fix:** call promise reject in case of fatal error and still pending promise

solves: FEC-11697 and FEC-11893

related pr: 
kaltura/playkit-js-dash#182
kaltura/playkit-js#633
borhandarabi pushed a commit to TasvirChi/playchi-js-dash that referenced this pull request May 14, 2024
borhandarabi pushed a commit to TasvirChi/playchi-js-hls that referenced this pull request May 14, 2024
see kaltura/playkit-js#633

**in addition regardless of the original issue** 
add error handling on load() method.
**issue:**  the promise will remain 'pending' forever ... in case an manifest loading error
Since the promise resolving returned from the load() rely on Hlsjs.Events.MANIFEST_LOADED event https://github.com/kaltura/playkit-js-hls/blob/master/src/hls-adapter.js#L140 to be resolved which is not fired in case of en error
**fix:** call promise reject in case of fatal error and still pending promise

solves: FEC-11697 and FEC-11893

related pr: 
kaltura/playkit-js-dash#182
kaltura/playkit-js#633
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.

2 participants