Class: shaka.util.ManifestFilter

Constructor

new ManifestFilter()

Source:

Classes

VariantCodecSummary
VariantCodecSummarySet

Methods

(static) filterByCommonCodecs(manifest)

Filter the variants in |manifest| to only include those that use codecs that will be supported in each variant. This ensures playback from the first period to the last period by "jumping between" compatible variants.
Parameters:
Name Type Description
manifest shaka.extern.Manifest
Source:

(static) filterByDrmSupport(manifest, drmEnginenon-null)

Filter the variants in |manifest| to only include those that are supported by |drm|.
Parameters:
Name Type Description
manifest shaka.extern.Manifest
drmEngine shaka.media.DrmEngine
Source:

(static) filterByMediaSourceSupport(manifest)

Filter the variants in the |manifest| to only include those that are supported by media source.
Parameters:
Name Type Description
manifest shaka.extern.Manifest
Source:

(static) filterByRestrictions(manifest, restrictions, maxHwResolution)

Filter the variants in |manifest| to only include the variants that meet the given restrictions.
Parameters:
Name Type Description
manifest shaka.extern.Manifest
restrictions shaka.extern.Restrictions
maxHwResolution {width: number, height:number}
Source:

(async, static) rollingFilter(manifest, filter) → (non-null) {Promise}

Go through each period and apply the filter to the set of variants. |filter| will only be given the set of variants in the current period that are compatible with at least one variant in the previous period.
Parameters:
Name Type Description
manifest shaka.extern.Manifest
filter function(shaka.extern.Period):!Promise
Source:
Returns:
Type
Promise