Class: shaka.util.ConfigUtils

Constructor

new ConfigUtils()

Source:

Methods

convertToConfigObject(fieldName, value) → {Object}

Convert config from ('fieldName', value) format to a partial config object. E. g. from ('manifest.retryParameters.maxAttempts', 1) to { manifest: { retryParameters: { maxAttempts: 1 }}}.
Parameters:
Name Type Description
fieldName string
value *
Source:
Returns:
Type
Object

mergeConfigObjects(destinationnon-null, sourcenon-null, templatenon-null, overridesnon-null, path) → {boolean}

Parameters:
Name Type Description
destination Object
source Object
template Object supplies default values
overrides Object Supplies override type checking. When the current path matches the key in this object, each sub-value must match the type in this object. If this contains an Object, it is used as the template.
path string to this part of the config
Source:
Returns:
Type
boolean