Methods
addDeprecatedConfigFields(config)
Populates deprecated fields on an AdaptationSetCriteria.Configuration
object from the preferredAudio and preferredVideo arrays.
This maintains backward compatibility for custom AdaptationSetCriteria
implementations that rely on the legacy individual fields.
Parameters:
| Name | Type | Description |
|---|---|---|
config |
shaka.extern.AdaptationSetCriteria.Configuration |
- Source:
createDefaultForLL() → {Object}
- Source:
Returns:
- Type
- Object
defaultManifestPreprocessorTXml(elementnon-null) → {shaka.extern.xml.Node}
Parameters:
| Name | Type | Description |
|---|---|---|
element |
shaka.extern.xml.Node |
- Source:
Returns:
defaultTrackSelect(tracksnon-null, preferredAudioLanguagesnon-null, preferredVideoHdrLevel) → {Array<shaka.extern.Track>}
Parameters:
| Name | Type | Description |
|---|---|---|
tracks |
Array<shaka.extern.Track> | |
preferredAudioLanguages |
Array<string> | |
preferredVideoHdrLevel |
string |
- Source:
Returns:
- Type
- Array<shaka.extern.Track>
mergeConfigObjects(destination, updatesnon-null, templateopt) → {boolean}
Merges the given configuration changes into the given destination. This
uses the default Player configurations as the template.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
destination |
shaka.extern.PlayerConfiguration | ||
updates |
Object | ||
template |
shaka.extern.PlayerConfiguration |
<optional> |
- Source:
Returns:
- Type
- boolean