Video.onTimeUpdate
JS
Video.onTimeUpdate(function callback)Registers a listener for the video playback progress update event.
Parameters
- function callback: Callback function that listens for the video playback progress update event
Parameters of the callback function
- Object res
| Field | Type | Description |
|---|---|---|
| currentTime | number | Current playback position, in seconds |
| duration | number | Total duration of the video, in seconds |
