Class: shaka.media.VideoWrapper.PlayheadMover

Constructor

new PlayheadMover(mediaElementnon-null, maxAttempts)

Parameters:
Name Type Description
mediaElement HTMLMediaElement The media element that the mover can manipulate.
maxAttempts number To prevent us from infinitely trying to change the current time, the mover accepts a max attempts value. At most, the mover will check if the video moved |maxAttempts| times. If this is zero of negative, no attempts will be made.
Implements:
Source:

Members

maxAttempts_ :number

Type:
  • number
Source:

originTime_ :number

Type:
  • number
Source:

remainingAttempts_ :number

Type:
  • number
Source:

targetTime_ :number

Type:
  • number
Source:

Methods

moveTo(timeInSeconds)

Try forcing the media element to move to |timeInSeconds|. If a previous call to |moveTo| is still in progress, this will override it.
Parameters:
Name Type Description
timeInSeconds number
Source:

release()

Request that this object release all internal references.
Implements:
Source: