Skip to content

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
FieldTypeDescription
currentTimenumberCurrent playback position, in seconds
durationnumberTotal duration of the video, in seconds