Interface: shaka.media.IAbrManager

An interface for a generic adaptive bitrate manager. An AbrManager listens for bandwidth events and makes decisions about which stream should be used at any given time. It can be queried for the initial stream to use when starting playback, and it will make active stream changes during playback (if enabled).
Implementations:
Source:

Methods

destroy()

Destroy the AbrManager.
Implementations:
Source:

enable(enabled)

Enable or disable the AbrManager. It is enabled by default when created.
Parameters:
Name Type Description
enabled boolean
Implementations:
Source:

getInitialVideoTrackId() → (nullable) {number}

Decide on an initial video track to use. Called before playback begins.
Implementations:
Source:
Returns:
The chosen video track ID or null if there are no video tracks to choose.
Type
number

initialize(estimatornon-null, videoSourcenon-null)

Initialize the AbrManager. This function will only be called by a VideoSource and should only be called once.
Parameters:
Name Type Description
estimator shaka.util.IBandwidthEstimator
videoSource shaka.player.IVideoSource
Implementations:
Source:

start()

Start processing stream switches. This function will only be called by a VideoSource and should only be called once.
Implementations:
Source: