Class: shaka.media.ManifestFilterer

Constructor

new ManifestFilterer(confignullable, maxHwRes, drmEnginenullable)

Parameters:
Name Type Attributes Description
config shaka.extern.PlayerConfiguration <nullable>
maxHwRes shaka.extern.Resolution
drmEngine shaka.media.DrmEngine <nullable>
Source:

Members

restrictedStatuses :Array.<string>

These are the EME key statuses that represent restricted playback. 'usable', 'released', 'output-downscaled', 'status-pending' are statuses of the usable keys. 'expired' status is being handled separately in DrmEngine.
Type:
  • Array.<string>
Source:

Methods

applyRestrictions(manifestnullable) → {boolean}

Parameters:
Name Type Attributes Description
manifest shaka.extern.Manifest <nullable>
Source:
Returns:
tracksChanged
Type
boolean

checkPlayableVariants_(manifestnon-null)

Confirm some variants are playable. Otherwise, throw an exception.
Parameters:
Name Type Description
manifest shaka.extern.Manifest
Source:

checkRestrictedVariants(manifest)

Checks if the variants are all restricted, and throw an appropriate exception if so.
Parameters:
Name Type Description
manifest shaka.extern.Manifest
Source:

filterManifest(manifestnullable) → {Promise.<boolean>}

Filters a manifest, removing unplayable streams/variants and choosing the codecs.
Parameters:
Name Type Attributes Description
manifest shaka.extern.Manifest <nullable>
Source:
Returns:
tracksChanged
Type
Promise.<boolean>

filterManifestWithRestrictions(manifestnullable) → {boolean}

Apply the restrictions configuration to the manifest, and check if there's a variant that meets the restrictions.
Parameters:
Name Type Attributes Description
manifest shaka.extern.Manifest <nullable>
Source:
Returns:
tracksChanged
Type
boolean

processDrmInfos(keySystem, streamnullable)

Parameters:
Name Type Attributes Description
keySystem string
stream shaka.extern.Stream <nullable>
Source:

setDrmEngine(drmEnginenon-null)

Parameters:
Name Type Description
drmEngine shaka.media.DrmEngine
Source: