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
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:
onTick_()
- Source:
release()
Request that this object release all internal references.
- Implements:
- Source: