Expand description
Pure selection of AdaptationSets and Representations
(docs/dash-runtime/DESIGN.md 5.1), by role, language, codec and
bandwidth, into the variant model a host speaks.
- Candidate sets: audio and video ISOBMFF sets that survive the drops of
DESIGN D10 (text, MPEG-2 TS and WebM segments, trick modes, protected
content, an
EssentialPropertythis core does not understand, a Representation that depends on another, unresolved xlink, invalid segment information). - Video: the first remaining set with Role
main(else document order); the Representation is the highest@bandwidththe policy allows, else the lowest.variantslists every Representation of every selectable video set in MPD order. - Audio: the first set whose
@langmatches the preferred language by BCP 47 prefix and whose Role is notcommentary/description; else Rolemain; else the first. DASH has no DEFAULT flag, Rolemainplays that part (5.8.5.5 Table 34).
Structs§
- Audio
Set - An audio AdaptationSet and its Representations.
- Dropped
- One drop, with its reason.
- Policy
- Selection policy; the same three limits as
hls_runtime::VariantPolicyplus the audio language. - RepRef
- A Representation’s position in the MPD.
- Selection
- The result of
selectfor one Period.
Enums§
- Drop
Reason - Why a set or Representation was not selectable.
- SetClass
- What a set carries.
Functions§
- classify
- Classify a set from
@contentType, then the MIME types, then codecs. - lang_
matches - Whether
preferredmatcheslangby BCP 47 prefix, ASCII case-insensitive. - select
- Select for
period_idxofmpd.