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

feat(FEC-12015): CC button for on/off subtitles #536

Merged
merged 9 commits into from
Apr 12, 2022
Merged

feat(FEC-12015): CC button for on/off subtitles #536

merged 9 commits into from
Apr 12, 2022

Conversation

yairans
Copy link
Contributor

@yairans yairans commented Apr 10, 2022

Description of the Changes

add showTextTrack api
save the CC selection in the storage

Solves FEC-12015

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

@@ -64,6 +65,19 @@ export default class StorageManager {
StorageWrapper.setItem(StorageManager.StorageKeys.TEXT_LANG, textTrack.language);
});

eventManager.listen(player, player.Event.UI.UI_ELEMENT_CLICKED, event => {
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need the event ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to save only when the language is selected by the user not by app config for example

@JonathanTGold JonathanTGold self-requested a review April 11, 2022 09:22
JonathanTGold
JonathanTGold previously approved these changes Apr 11, 2022
done();
return;
}
player.dispatchEvent(new FakeEvent(player.Event.UI.UI_ELEMENT_CLICKED, {element: 'ClosedCaptions'}));
Copy link
Contributor

Choose a reason for hiding this comment

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

rename event

player.load();
player.ready().then(() => {
try {
player.dispatchEvent(new FakeEvent(player.Event.UI.UI_ELEMENT_CLICKED, {element: 'ClosedCaptions'}));
Copy link
Contributor

Choose a reason for hiding this comment

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

rename event

SivanA-Kaltura
SivanA-Kaltura previously approved these changes Apr 12, 2022
@yairans yairans merged commit 8e3cc43 into master Apr 12, 2022
@yairans yairans deleted the FEC-12015 branch April 12, 2022 20:13
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