Constructor
new VideoWrapper(videonon-null, onSeek, onStarted, startTime)
Parameters:
Name | Type | Description |
---|---|---|
video |
HTMLMediaElement | |
onSeek |
function | Called when the video seeks. |
onStarted |
function | Called when the video has started. |
startTime |
number | The time to start at. |
- Implements:
- Source:
Classes
Members
Methods
getTime() → {number}
Gets the video's current (logical) position.
- Source:
Returns:
- Type
- number
release()
Request that this object release all internal references.
- Implements:
- Source:
setStartTime_(startTime)
Set the start time for the content. The given start time will be ignored if
the content does not start at 0.
Parameters:
Name | Type | Description |
---|---|---|
startTime |
number |
- Source:
setTime(time)
Sets the current time of the video.
Parameters:
Name | Type | Description |
---|---|---|
time |
number |
- Source:
startListeningToSeeks_()
Add the listener for seek-events. This will call the externally-provided
|onSeek| callback whenever the media element seeks.
- Source: