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-10356): upgrade Shaka #112

Merged
merged 7 commits into from
Aug 3, 2020
Merged

feat(FEC-10356): upgrade Shaka #112

merged 7 commits into from
Aug 3, 2020

Conversation

Yuvalke
Copy link
Contributor

@Yuvalke Yuvalke commented Jul 30, 2020

Description of the Changes

upgrade shaka to current latest, note this is a major change with breaking changes(see below).

issue: getManifest was marked as API which could change any time.
solution: add an extra check to make sure it's not breaking our API, keeps the tests as is to help us to be aware of changes on this API.
Also added a comment on google/shaka-player#

Solve: FEC-10356.

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

issue: getManifest was marked as api which could change any time.
solution: add extra check to make sure it's not breaking our API, keeps the tests as is to help us to be aware of changes on this API
@Yuvalke Yuvalke requested a review from a team July 30, 2020 04:53
@Yuvalke Yuvalke self-assigned this Jul 30, 2020
OrenMe
OrenMe previously approved these changes Jul 30, 2020
@OrenMe
Copy link
Contributor

OrenMe commented Jul 30, 2020

@Yuvalke please also update dependency in Kaltura player

Copy link
Contributor

@OrenMe OrenMe left a comment

Choose a reason for hiding this comment

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

please check changes around 608/708 tracks: https://github.com/google/shaka-player/blob/master/docs/tutorials/upgrade-v2-5.md#embedded-text-cea-608708-api-change
In general read the guide to see what applies to us.

@@ -1414,7 +1414,7 @@ describe('DashAdapter: request filter', () => {
dashInstance.load();
});

it('should apply promise filter for manifest', done => {
it.skip('should apply promise filter for manifest', done => {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we just stub fetch or xhr themselves instead of shaka's?
I see it as we have a couple of options -
just get the entire fetch plugin, inherit from it and wrap the call to fetch
set spy on fetch and check the call url.

Copy link
Contributor Author

@Yuvalke Yuvalke Aug 2, 2020

Choose a reason for hiding this comment

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

@OrenMe I tried to stub fetch and xhr and it doesn't work.. the stub callback doesn't call on window.fetch/xhr.
inherit option will not work, I have tried to override their implementation...
they're using their own implementation

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe override the function instead of stub?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@RoyBregman override which function?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

it seems that we can use the parse api call on those plugins. It is public and documented here for usage: https://github.com/google/shaka-player/blob/master/docs/tutorials/upgrade-v2-5.md#built-in-network-scheme-plugin-changes

Copy link
Contributor Author

@Yuvalke Yuvalke Aug 2, 2020

Choose a reason for hiding this comment

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

@OrenMe The stub on parse doesn't work since it does not exist in compile mode.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, let's remove for now and open a task to rethink how to test correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@OrenMe solved

OrenMe
OrenMe previously approved these changes Aug 2, 2020
@OrenMe OrenMe requested a review from yairans August 3, 2020 06:05
@OrenMe OrenMe changed the title fix(FEC-10356): upgrade Shaka feat(FEC-10356): upgrade Shaka Aug 3, 2020
@Yuvalke Yuvalke merged commit 3c3b05b into master Aug 3, 2020
@Yuvalke Yuvalke deleted the FEC-10356 branch August 3, 2020 06:57
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.

None yet

3 participants