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-11399): allow ignoring server config #480

Merged
merged 8 commits into from
Aug 17, 2021

Conversation

SivanA-Kaltura
Copy link
Contributor

@SivanA-Kaltura SivanA-Kaltura commented Aug 15, 2021

Description of the Changes

Add flag to provider configuration to allow ignoring server config.
Related PRs:

Fixes FEC-11399.

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

@SivanA-Kaltura SivanA-Kaltura requested a review from a team August 15, 2021 14:03
@@ -296,7 +296,11 @@ function getDefaultOptions(options: PartialKPOptionsObject): KPOptionsObject {
}
};
Utils.Object.mergeDeep(defaultOptions, options);
defaultOptions = Utils.Object.mergeDeep({}, supportLegacyOptions(getServerUIConf()), defaultOptions);

if (!options.ignoreServerConfig) {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe move it to provider config as this is relevant for kaltura partners only

>
> ##### Default: `false`
>
> ##### Description: Indicates whether to stop using the server configuration.
Copy link
Contributor

@RoyBregman RoyBregman Aug 16, 2021

Choose a reason for hiding this comment

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

Suggested change
> ##### Description: Indicates whether to stop using the server configuration.
> ##### Description: Instructs the player to ignore the server configuration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixing in playkit-js-providers

@@ -34,7 +35,8 @@ declare type PartialKPOptionsObject = {
playlist?: KPPlaylistObject,
dimensions?: PKDimensionsConfig,
ui?: KPUIOptionsObject,
cast?: {[key: string]: any}
cast?: {[key: string]: any},
Copy link
Contributor

@RoyBregman RoyBregman Aug 16, 2021

Choose a reason for hiding this comment

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

add viewability: KPViewabilityConfigObject,

Co-authored-by: Roy Bregman <48884909+RoyBregman@users.noreply.github.com>
@SivanA-Kaltura SivanA-Kaltura merged commit 707d519 into master Aug 17, 2021
@SivanA-Kaltura SivanA-Kaltura deleted the FEC-11399-allow-ignoring-server-config branch August 17, 2021 13:36
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