Class: MediaPlayerModel

MediaPlayerModel


new MediaPlayerModel()

We use this model as a wrapper/proxy between Settings.js and classes that are using parameters from Settings.js.
In some cases we require additional logic to be applied and the settings might need to be adjusted before being used.

Source:

Methods


<inner> getAbrBitrateParameter(field, mediaType)

Returns the min,max or initial bitrate for a specific media type.

Parameters:
Name Type Description
field string
mediaType string
Source:

<inner> getCatchupMaxDrift()

Returns the maximum drift allowed before applying a seek back to the live edge when the catchup mode is enabled

Source:
Returns:
Type
number

<inner> getCatchupModeEnabled()

Returns whether the catchup mode is activated via the settings or internally in the PlaybackController

Source:
Returns:
Type
boolean

<inner> getCatchupPlaybackRate()

Returns the maximum playback rate to be used when applying the catchup mechanism

Source:
Returns:
Type
number

<inner> getInitialBufferLevel()

Returns the initial buffer level taking the stable buffer time into account

Source:
Returns:
Type
number

<inner> getLiveCatchupLatencyThreshold()

Returns the threshold for which to apply the catchup logic

Source:
Returns:
Type
number

<inner> getRetryAttemptsForType(type)

Returns the number of retry attempts for a specific media type

Parameters:
Name Type Description
type
Source:
Returns:
Type
number

<inner> getRetryIntervalsForType(type)

Returns the retry interbal for a specific media type

Parameters:
Name Type Description
type
Source:
Returns:
Type
number

<inner> getStableBufferTime()

Returns the stable buffer time taking the live delay into account

Source:
Returns:
Type
number