Class: shaka.media.ExampleBasedCriteria

Constructor

new ExampleBasedCriteria(example, codecSwitchingStrategy, adaptationSetCriteriaFactory)

Parameters:
Name Type Description
example shaka.extern.Variant
codecSwitchingStrategy shaka.config.CodecSwitchingStrategy
adaptationSetCriteriaFactory shaka.media.AdaptationSetCriteria.Factory
Implements:
Source:

Members

Methods

configure(config)

Sets the AdaptationSetCriteria configuration.
Parameters:
Name Type Description
config shaka.media.AdaptationSetCriteria.Configuration
Implements:
Source:

create(variantsnon-null) → {shaka.media.AdaptationSet}

Take a set of variants, and return a subset of variants that can be adapted between.
Parameters:
Name Type Description
variants Array.<shaka.extern.Variant>
Implements:
Source:
Returns:
Type
shaka.media.AdaptationSet