-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat(FEC-11399): allow ignoring server config #480
Conversation
src/common/utils/setup-helpers.js
Outdated
@@ -296,7 +296,11 @@ function getDefaultOptions(options: PartialKPOptionsObject): KPOptionsObject { | |||
} | |||
}; | |||
Utils.Object.mergeDeep(defaultOptions, options); | |||
defaultOptions = Utils.Object.mergeDeep({}, supportLegacyOptions(getServerUIConf()), defaultOptions); | |||
|
|||
if (!options.ignoreServerConfig) { |
There was a problem hiding this comment.
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
docs/configuration.md
Outdated
> | ||
> ##### Default: `false` | ||
> | ||
> ##### Description: Indicates whether to stop using the server configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> ##### Description: Indicates whether to stop using the server configuration. | |
> ##### Description: Instructs the player to ignore the server configuration. |
There was a problem hiding this comment.
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}, |
There was a problem hiding this comment.
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>
Co-authored-by: Yair Ansbacher <yair.ansbacher@kaltura.com>
Description of the Changes
Add flag to provider configuration to allow ignoring server config.
Related PRs:
Fixes FEC-11399.
CheckLists