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.
Methods
(inner) _checkMaxPlaybackRate(rate, log) → {number}
Checks the supplied max playback rate is a valid vlaue and within supported limits
Name | Type | Description |
---|---|---|
rate | number | Supplied max playback rate |
log | boolean | wether to shown warning or not |
corrected max playback rate
- Type:
- number
(inner) _checkMinPlaybackRate(rate, log) → {number}
Checks the supplied min playback rate is a valid vlaue and within supported limits
Name | Type | Description |
---|---|---|
rate | number | Supplied min playback rate |
log | boolean | wether to shown warning or not |
corrected min playback rate
- Type:
- number
(inner) getAbrBitrateParameter(field, mediaType)
Returns the min,max or initial bitrate for a specific media type.
Name | Type | Description |
---|---|---|
field | string | |
mediaType | string |
(inner) getCatchupMaxDrift() → {number}
Returns the maximum drift allowed before applying a seek back to the live edge when the catchup mode is enabled
- Type:
- number
(inner) getCatchupModeEnabled() → {boolean}
Returns whether the catchup mode is activated via the settings or internally in the PlaybackController
- Type:
- boolean
(inner) getCatchupPlaybackRates() → {number}
Returns the minimum and maximum playback rates to be used when applying the catchup mechanism
If only one of the min/max values has been set then the other will default to 0 (no playback rate change).
- Type:
- number
(inner) getInitialBufferLevel() → {number}
Returns the initial buffer level taking the stable buffer time into account
- Type:
- number
(inner) getRetryAttemptsForType(type) → {number}
Returns the number of retry attempts for a specific media type
Name | Type | Description |
---|---|---|
type |
- Type:
- number
(inner) getRetryIntervalsForType(type) → {number}
Returns the retry interval for a specific media type
Name | Type | Description |
---|---|---|
type |
- Type:
- number
(inner) getStableBufferTime() → {number}
Returns the stable buffer time taking the live delay into account
- Type:
- number