Constructor
new LiveCatchUpController(playerInterface)
Parameters:
Name | Type | Description |
---|---|---|
playerInterface |
shaka.media.LiveCatchUpController.PlayerInterface |
Members
config_ :shaka.extern.LiveCatchUpConfiguration
Type:
maxLiveOffsetErrorMs :number
The default maximum difference between the current live offset and the
target live offset, in milliseconds, for which unit speed (1.0f) is used.
Type:
- number
playerInterface_ :shaka.media.LiveCatchUpController.PlayerInterface
Type:
proportionalControlFactorMs_ :number
Type:
- number
updateTimer_ :shaka.util.Timer
Type:
video_ :HTMLMediaElement
Type:
Methods
calculateNewPlaybackRate_() → {number}
Returns:
- Type
- number
configure(config)
Called by the Player to provide an updated configuration any time it
changes. Must be called at least once before start().
Parameters:
Name | Type | Description |
---|---|---|
config |
shaka.extern.LiveCatchUpConfiguration |
constrainValue_(value, min, max) → {number}
Constrain the playback rate to the configured limits.
Parameters:
Name | Type | Description |
---|---|---|
value |
number | |
min |
number | |
max |
number |
Returns:
- Type
- number
disable()
enable()
getDefaultMaxPlayRate() → {number}
Returns:
- Type
- number
getLatency_() → {number}
Returns:
- Type
- number
getPlaybackRateMax_() → {number}
Returns:
- Type
- number
getPlaybackRateMin_() → {number}
Returns:
- Type
- number
getTargetLatency_() → {number}
Returns:
- Type
- number
setVideoElement(video)
Attach to the video element.
Parameters:
Name | Type | Description |
---|---|---|
video |
HTMLMediaElement |
update_()
updatePlayRate()
Type Definitions
PlayerInterface
Type:
- {getBufferEnd: function(): number, getPlayRate: function(): number, getPresentationLatencyInfo: (function(): shaka.media.StreamingEngine.PresentationLatencyInfo|null), trickPlay: function(number), getServiceDescription: (function(): shaka.extern.ServiceDescription|undefined)}
Properties:
Name | Type | Description |
---|---|---|
getBufferEnd |
function | Get the Buffer end. |
getPlayRate |
function | Get the current play rate. |
getPresentationLatencyInfo |
function | Get the presentation latency |
trickPlay |
function | Called when an event occurs that should be sent to the app. |