Interface: shaka.media.AdaptationSetCriteria

Methods

configure(config)

Sets the AdaptationSetCriteria configuration.
Parameters:
Name Type Description
config shaka.media.AdaptationSetCriteria.Configuration
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>
Source:
Returns:
Type
shaka.media.AdaptationSet

Type Definitions

Configuration

Type:
  • {language: string, role: string, channelCount: number, hdrLevel: string, spatialAudio: boolean, videoLayout: string, audioLabel: string, videoLabel: string, codecSwitchingStrategy: shaka.config.CodecSwitchingStrategy, audioCodec: string}
Properties:
Name Type Description
language string The language used to filter variants.
role string The adaptation role used to filter variants.
channelCount string The audio channel count used to filter variants.
hdrLevel string The HDR level used to filter variants.
spatialAudio boolean Whether should prefer audio tracks with spatial audio.
videoLayout string The video layout used to filter variants.
audioLabel string The audio label used to filter variants.
videoLabel string The video label used to filter variants.
codecSwitchingStrategy shaka.config.CodecSwitchingStrategy The codec switching strategy used to filter variants.
audioCodec string The audio codec used to filter variants.
Source:

Factory

A factory for creating the AdaptationSetCriteria.
Type:
  • function():!shaka.media.AdaptationSetCriteria
Source: