Constructor
new PreferenceBasedCriteria(language, role, channelCount, labelopt)
Parameters:
Name |
Type |
Attributes |
Description |
language |
string
|
|
|
role |
string
|
|
|
channelCount |
number
|
|
|
label |
string
|
<optional>
|
|
- Implements:
- Source:
Members
(private) channelCount_ :number
Type:
- Source:
(private) label_ :string
Type:
- Source:
(private) language_ :string
Type:
- Source:
(private) role_ :string
Type:
- Source:
Methods
(private, static) filterVariantsByLabel_(variantsnon-null, preferredLabel) → (non-null) {Array.<shaka.extern.Variant>}
Filter Variants by label.
Parameters:
- Source:
Returns:
-
Type
-
Array.<shaka.extern.Variant>
(private, static) filterVariantsByRole_(variantsnon-null, preferredRole) → (non-null) {Array.<shaka.extern.Variant>}
Filter Variants by role.
Parameters:
- Source:
Returns:
-
Type
-
Array.<shaka.extern.Variant>
Take a set of variants, and return a subset of variants that can be
adapted between.
Parameters:
- Implements:
- Source:
Returns:
-
Type
-
shaka.media.AdaptationSet