Constructor
new ExampleBasedCriteria(example, codecSwitchingStrategyopt, enableAudioGroupsopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
example |
shaka.extern.Variant | |||
codecSwitchingStrategy |
shaka.config.CodecSwitchingStrategy |
<optional> |
||
enableAudioGroups |
boolean |
<optional> |
false |
- Implements:
- Source:
Members
codecSwitchingStrategy_ :shaka.config.CodecSwitchingStrategy
Type:
example_ :shaka.extern.Variant
Type:
fallback_ :shaka.media.AdaptationSetCriteria
Type:
Methods
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: