Constructor
new LiveCatchUpController(playerInterface)
Parameters:
Name | Type | Description |
---|---|---|
playerInterface |
shaka.media.LiveCatchUpController.PlayerInterface |
Members
config_ :shaka.extern.LiveCatchUpConfiguration
Type:
playerInterface_ :shaka.media.LiveCatchUpController.PlayerInterface
Type:
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 |
disable()
enable()
getDefaultMaxPlayRate() → {number}
Returns:
- Type
- number
getPlaybackRateMax_() → {number}
Returns:
- Type
- number
getPlaybackRateMin_() → {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, getPresentationTime: function(): number, getPresentationLatency: function(): number, 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. |
getPresentationTime |
function | Get the position in the presentation (in seconds) of the content that the viewer is seeing on screen right now. |
getPresentationLatency |
function | Get the presentation latency |
trickPlay |
function | Called when an event occurs that should be sent to the app. |