Class: shaka.util.PlayerConfiguration

Constructor

new PlayerConfiguration()

Source:

Methods

defaultTrackSelect(tracksnon-null, preferredAudioLanguage) → {Array.<shaka.extern.Track>}

Parameters:
Name Type Description
tracks Array.<shaka.extern.Track>
preferredAudioLanguage 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