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

(private) maxAttempts_ :number

Type:
  • number
Source:

(private) mediaElement_ :HTMLMediaElement

Type:
Source:

(private) originTime_ :number

Type:
  • number
Source:

(private) remainingAttempts_ :number

Type:
  • number
Source:

(private) 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:

(private) onTick_()

Source:

(export) release()

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