Certain features of TOP can be toggled through the features configuration.
Explicit feature configuration is not necessary, unless you want to override a default behavior
Feature configuration can be simple or detailed:
Specifying a feature can be done simply by passing a Boolean:
var player = TOP.createAndInitPlayer({
config : {
features : {
<specific feature> : true // Enables the specified feature using default config values
}
}
});For more detailed configuration options, passing an Object must be done:
var player = TOP.createAndInitPlayer({
config : {
features : {
<specific feature> : {
enabled : true, // When configured this way, 'enabled' is set to true by default
...
// Other configuration options specified depending on the feature
}
}
}
});See feature options for more on what can be configured