Class: shaka.media.LiveCatchUpController

Constructor

new LiveCatchUpController(playerInterface)

Parameters:
Name Type Description
playerInterface shaka.media.LiveCatchUpController.PlayerInterface
Source:

Members

defaultMaxPlayRate_ :number

Type:
  • number
Source:

defaultMinPlayRate_ :number

Type:
  • number
Source:

enabled_ :boolean

Type:
  • boolean
Source:

lastPlayRate_ :number

Type:
  • number
Source:

updateInterval_ :number

Type:
  • number
Source:

Methods

calculateNewPlaybackRate_() → {number}

Source:
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
Source:

getDefaultMaxPlayRate() → {number}

Source:
Returns:
Type
number

getPlaybackRateMax_() → {number}

Source:
Returns:
Type
number

getPlaybackRateMin_() → {number}

Source:
Returns:
Type
number

setVideoElement(video)

Attach to the video element.
Parameters:
Name Type Description
video HTMLMediaElement
Source:

updatePlayRate()

Source:

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.
Source: